Re: Kernel oops with bluetooth usb dongle

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Thomas Gleixner
Date: Friday, February 22, 2008 - 12:23 am

Quel,

On Fri, 22 Feb 2008, Quel Qun wrote:

Cool.
 

That's what I wanted to see.
 

Correct. And I don't see how it's guaranteed that the timer is deleted
before l2cap_conn_del() is called which kfree's the l2cap_conn
structure.


Yes, it is. The little information you got should be enough to solve
this. Thanks for your patience and help !

Does the patch below fix your problem ?

Thanks,

	tglx

---
 net/bluetooth/l2cap.c |    2 ++
 1 file changed, 2 insertions(+)

Index: linux-2.6/net/bluetooth/l2cap.c
===================================================================
--- linux-2.6.orig/net/bluetooth/l2cap.c
+++ linux-2.6/net/bluetooth/l2cap.c
@@ -417,6 +417,8 @@ static void l2cap_conn_del(struct hci_co
 		l2cap_sock_kill(sk);
 	}
 
+	del_timer(&conn->info_timer);
+
 	hcon->l2cap_data = NULL;
 	kfree(conn);
 }
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: Kernel oops with bluetooth usb dongle, Quel Qun, (Thu Feb 21, 7:40 pm)
Re: Kernel oops with bluetooth usb dongle, Dave Young, (Thu Feb 21, 8:23 pm)
Re: Kernel oops with bluetooth usb dongle, Thomas Gleixner, (Fri Feb 22, 12:23 am)
Re: Kernel oops with bluetooth usb dongle, David Woodhouse, (Fri Feb 22, 4:34 am)
Re: Kernel oops with bluetooth usb dongle, Thomas Gleixner, (Fri Feb 22, 4:43 am)