]> git.karo-electronics.de Git - linux-beck.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)
commitcedc5469778846ee18c653aaa6d70681961eed93
tree62474c68745e8c63f35ba8af4fe8ad31e0e2fa8c
parent2f39cdb7a270da24532734dfdfd10c490be981c4
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