diff options
Diffstat (limited to 'net/bluetooth/l2cap.c')
-rw-r--r-- | net/bluetooth/l2cap.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/bluetooth/l2cap.c b/net/bluetooth/l2cap.c index a8811c0a0cea..34f8bf98bc05 100644 --- a/net/bluetooth/l2cap.c +++ b/net/bluetooth/l2cap.c | |||
@@ -417,6 +417,9 @@ static void l2cap_conn_del(struct hci_conn *hcon, int err) | |||
417 | l2cap_sock_kill(sk); | 417 | l2cap_sock_kill(sk); |
418 | } | 418 | } |
419 | 419 | ||
420 | if (conn->info_state & L2CAP_INFO_FEAT_MASK_REQ_SENT) | ||
421 | del_timer_sync(&conn->info_timer); | ||
422 | |||
420 | hcon->l2cap_data = NULL; | 423 | hcon->l2cap_data = NULL; |
421 | kfree(conn); | 424 | kfree(conn); |
422 | } | 425 | } |