Re: [PATCH] Fix use-after-free oops in Bluetooth HID.

2007-07-08 Thread Dmitry Torokhov
On Saturday 07 July 2007 14:58, David Woodhouse wrote: > When cleaning up HIDP sessions, we currently close the ACL connection > before deregistering the input device. Closing the ACL connection > schedules a workqueue to remove the associated objects from sysfs, but > the input device still refers

Re: [PATCH] Fix use-after-free oops in Bluetooth HID.

2007-07-07 Thread Linus Torvalds
On Sat, 7 Jul 2007, David Woodhouse wrote: > > When cleaning up HIDP sessions [...] Thanks. > Signed-off-by: David Woodhouse <[EMAIL PROTECTED]> > Signed-off-by: Marcel Holtmann <[EMAIL PROTECTED]> Btw, and totally unrelated to the patch itself.. I changed that second "Signed-off-by:" into an

[PATCH] Fix use-after-free oops in Bluetooth HID.

2007-07-07 Thread David Woodhouse
When cleaning up HIDP sessions, we currently close the ACL connection before deregistering the input device. Closing the ACL connection schedules a workqueue to remove the associated objects from sysfs, but the input device still refers to them -- and if the workqueue happens to run before the inpu