diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2014-01-29 00:16:49 +0100 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2014-02-13 08:51:38 +0100 |
commit | b783fbc3a55691f978b9f78d552a0d7e7d2705ad (patch) | |
tree | ebbe9231aef608fc1defd19342824d94ebcaa286 /net/bluetooth/rfcomm/sock.c | |
parent | Bluetooth: Free up l2cap_chan->sport when initiating a connection (diff) | |
download | linux-b783fbc3a55691f978b9f78d552a0d7e7d2705ad.tar.xz linux-b783fbc3a55691f978b9f78d552a0d7e7d2705ad.zip |
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>
Diffstat (limited to 'net/bluetooth/rfcomm/sock.c')
0 files changed, 0 insertions, 0 deletions