projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f2f40a
)
bluetooth: delete timer in l2cap_conn_del()
author
Thomas Gleixner
<tglx@linutronix.de>
Wed, 27 Feb 2008 01:42:56 +0000
(17:42 -0800)
committer
David S. Miller
<davem@davemloft.net>
Wed, 27 Feb 2008 01:42:56 +0000
(17:42 -0800)
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>
net/bluetooth/l2cap.c
patch
|
blob
|
blame
|
history
diff --git
a/net/bluetooth/l2cap.c
b/net/bluetooth/l2cap.c
index a8811c0a0ceaf436f74002397041765e5757f7a3..7c5459c8e8efdf9e7e9e51d485c9f9ff99eb20f9 100644
(file)
--- 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);
}