]> git.karo-electronics.de Git - linux-beck.git/commit
USB HID: avoid flush_scheduled_work()
authorAlan Stern <stern@rowland.harvard.edu>
Wed, 30 May 2007 15:11:12 +0000 (11:11 -0400)
committerJiri Kosina <jkosina@suse.cz>
Mon, 9 Jul 2007 12:13:30 +0000 (14:13 +0200)
commit2fa45a4cffd0c4ab4e238e8ad3b4f9b0c10ac1f3
treef5e5c5f42ca7089ea192830227fc8679403c7566
parent3cd709866f639d24b0d0f38567c19662c98ea92e
USB HID: avoid flush_scheduled_work()

This patch (as914) replaces a call to flush_scheduled_work() with
cancel_work_sync(), in order to help avoid potential deadlocks.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/usbhid/hid-core.c