diff options
-rw-r--r-- | net/bluetooth/l2cap_core.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c index bf09f6027bd2..033c83be3524 100644 --- a/net/bluetooth/l2cap_core.c +++ b/net/bluetooth/l2cap_core.c | |||
@@ -2461,6 +2461,11 @@ static inline int l2cap_information_rsp(struct l2cap_conn *conn, struct l2cap_cm | |||
2461 | 2461 | ||
2462 | BT_DBG("type 0x%4.4x result 0x%2.2x", type, result); | 2462 | BT_DBG("type 0x%4.4x result 0x%2.2x", type, result); |
2463 | 2463 | ||
2464 | /* L2CAP Info req/rsp are unbound to channels, add extra checks */ | ||
2465 | if (cmd->ident != conn->info_ident || | ||
2466 | conn->info_state & L2CAP_INFO_FEAT_MASK_REQ_DONE) | ||
2467 | return 0; | ||
2468 | |||
2464 | del_timer(&conn->info_timer); | 2469 | del_timer(&conn->info_timer); |
2465 | 2470 | ||
2466 | if (result != L2CAP_IR_SUCCESS) { | 2471 | if (result != L2CAP_IR_SUCCESS) { |