]> git.karo-electronics.de Git - linux-beck.git/commit
Bluetooth: Use memdup_user in le_auto_conn_write()
authorAndre Guedes <andre.guedes@openbossa.org>
Mon, 24 Mar 2014 19:08:48 +0000 (16:08 -0300)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 26 Mar 2014 16:31:34 +0000 (09:31 -0700)
commit4408dd15d9cfcf78b819d2d4a5b43dc36056cab8
tree6a2f1035ceec0615cb8688b120aa58812e229853
parent4af605d8c4d3cf5170fdb40b5c77ea133761d2df
Bluetooth: Use memdup_user in le_auto_conn_write()

This patch does a small code simplification replacing the tipical
kmalloc-copy_from_user sequence by memdup_user() helper.

Cc: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hci_core.c