]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Refuse peer L2CAP address reading when not connected
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 28 Jan 2014 23:16:49 +0000 (15:16 -0800)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 13 Feb 2014 07:51:38 +0000 (09:51 +0200)
commit6c4cc810f127fa989049dbdff4adc42c6cffd227
treeebbe9231aef608fc1defd19342824d94ebcaa286
parente3c0fffa47b9e082fe6103f06ef5adbe7b14f5b2
Bluetooth: Refuse peer L2CAP address reading when not connected

When we're not connected the peer address information is undefined. This
patch fixes the remote address getting to return a proper error in case
the state is anything else than BT_CONNECTED.

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