]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Allow L2CAP getpeername() for BT_CONFIG state
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 1 Jul 2014 09:07:23 +0000 (12:07 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 3 Jul 2014 15:42:52 +0000 (17:42 +0200)
commitff2b15525062f93e510103126455340f3df94ff7
tree560bc05fbc7f2b6e5eedf690f8f893750b9950af
parentda99df629fb721b7a1f7b9caa5d9adf2cfdf42ac
Bluetooth: Allow L2CAP getpeername() for BT_CONFIG state

We have all the necessary remote information for getpeername() when we
are in the BT_CONFIG state so this should be allowed. This is
particularly important for LE sockets where changing the security level
will temporarily move the socket into BT_CONFIG state.

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