]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Limit HCI raw socket options to actual raw sockets
authorMarcel Holtmann <marcel@holtmann.org>
Mon, 20 Feb 2012 13:50:32 +0000 (14:50 +0100)
committerJohan Hedberg <johan.hedberg@intel.com>
Mon, 20 Feb 2012 13:55:54 +0000 (15:55 +0200)
commitdc1c24eb7e26894cb2c5b1af7be15ca55d39971e
tree23287d6082f8dca48ea1631b6bbbcece87c825d4
parent085fe7ab5450ba7670994513c3b80f8c341c3174
Bluetooth: Limit HCI raw socket options to actual raw sockets

Currently the socket options of HCI sockets can be set on raw and control
sockets, but on control sockets they make no sense. So just return EINVAL
in that case.

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