]> git.baikalelectronics.ru Git - kernel.git/commit
HID: fix possible deadlock in usbhid_close()
authorOliver Neukum <oliver@neukum.org>
Wed, 29 Apr 2009 15:12:12 +0000 (17:12 +0200)
committerJiri Kosina <jkosina@suse.cz>
Wed, 29 Apr 2009 15:25:01 +0000 (17:25 +0200)
commitc7099651ac1b16a414b51e8044c30add68f246d2
tree138fe216f5659a8022bf45cc319e18a3e0595a2e
parent605db670ea3d888f1cb7a2b2c5a400f508205d88
HID: fix possible deadlock in usbhid_close()

This patch switches usbhid_close() from flush_scheduled_work() to canceling
the outstanding work. This fixes a possible deadlock due to work taking
the mutex usbhid_close() holds. Lockdep reported the problem.

Signed-off-by: Oliver Neukum <oliver@neukum.org>
--
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/usbhid/hid-core.c