Skip to content

Commit

Permalink
[Bluetooth] Ignore L2CAP config requests on disconnect
Browse files Browse the repository at this point in the history
Any L2CAP connection in disconnecting state shall not response
to any further config requests from the remote side. So in case
such a request is received, ignore it.

Signed-off-by: Ville Tervo <ville.tervo@nokia.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
  • Loading branch information
Marcel Holtmann authored and David S. Miller committed Nov 22, 2006
1 parent 820ae1b commit 354f60a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions net/bluetooth/l2cap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1533,6 +1533,9 @@ static inline int l2cap_config_req(struct l2cap_conn *conn, struct l2cap_cmd_hdr
if (!(sk = l2cap_get_chan_by_scid(&conn->chan_list, dcid)))
return -ENOENT;

if (sk->sk_state == BT_DISCONN)
goto unlock;

l2cap_parse_conf_req(sk, req->data, cmd->len - sizeof(*req));

if (flags & 0x0001) {
Expand Down

0 comments on commit 354f60a

Please sign in to comment.