kernel-aes67/net/bluetooth/hidp
David Woodhouse 1c39858b5d Fix use-after-free oops in Bluetooth HID.
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 input device removal, the kernel will oops when trying to
look up PHYSDEVPATH for the removed input device.

Fix this by deregistering the input device before closing the
connections.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-07-07 12:22:37 -07:00
..
core.c Fix use-after-free oops in Bluetooth HID. 2007-07-07 12:22:37 -07:00
hidp.h [Bluetooth] Add support for using the HID subsystem 2007-02-26 11:42:38 -08:00
Kconfig [Bluetooth] Add support for using the HID subsystem 2007-02-26 11:42:38 -08:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sock.c [Bluetooth] Fix wrong put_user() from HIDP compat ioctl patch 2007-02-26 11:42:35 -08:00