]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Lock socket when reading HCI socket options
authorMarcel Holtmann <marcel@holtmann.org>
Mon, 20 Feb 2012 13:50:33 +0000 (14:50 +0100)
committerJohan Hedberg <johan.hedberg@intel.com>
Mon, 20 Feb 2012 13:56:05 +0000 (15:56 +0200)
commit70e9a5f00bbf9aa2a61ff85038a29ce42030e9e9
tree62474c68745e8c63f35ba8af4fe8ad31e0e2fa8c
parentdc1c24eb7e26894cb2c5b1af7be15ca55d39971e
Bluetooth: Lock socket when reading HCI socket options

When reading the HCI raw socket option, the socket was never locked. So
lock the socket and in addition return EINVAL on non raw sockets.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
net/bluetooth/hci_sock.c