summaryrefslogtreecommitdiffstats
path: root/net/bluetooth/l2cap.c
diff options
context:
space:
mode:
authorThomas Gleixner2008-02-27 02:42:56 +0100
committerDavid S. Miller2008-02-27 02:42:56 +0100
commit3ab2273175bd59616b6e85c0f88b154e8bd97413 (patch)
treed77cb79e89925a0def66bb710e97896508f45efa /net/bluetooth/l2cap.c
parenttipc: fix integer as NULL pointer sparse warnings in tipc (diff)
downloadkernel-qcow2-linux-3ab2273175bd59616b6e85c0f88b154e8bd97413.tar.gz
kernel-qcow2-linux-3ab2273175bd59616b6e85c0f88b154e8bd97413.tar.xz
kernel-qcow2-linux-3ab2273175bd59616b6e85c0f88b154e8bd97413.zip
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 <kelk1@comcast.net> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bluetooth/l2cap.c')
-rw-r--r--net/bluetooth/l2cap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/bluetooth/l2cap.c b/net/bluetooth/l2cap.c
index a8811c0a0cea..7c5459c8e8ef 100644
--- a/net/bluetooth/l2cap.c
+++ b/net/bluetooth/l2cap.c
@@ -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);
}