bluetooth: delete timer in l2cap_conn_del()

Delete a possibly armed timer before kfree'ing the connection object.

Solves: http://lkml.org/lkml/2008/2/15/514

Reported-by:Quel Qun <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
Thomas Gleixner 2008-02-26 17:42:56 -08:00 • committed by David S. Miller
commit 3ab2273175

View file

@ -417,6 +417,8 @@ static void l2cap_conn_del(struct hci_conn *hcon, int err)
l2cap_sock_kill(sk);
}
del_timer_sync(&conn->info_timer);
hcon->l2cap_data = NULL;
kfree(conn);
}