From: Oliver Neukum Date: Wed, 29 Apr 2009 15:12:12 +0000 (+0200) Subject: HID: fix possible deadlock in usbhid_close() X-Git-Tag: v2.6.30-rc5~58^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=89092ddd7aca598e3b8874f7a49216e7917d8f3f;p=pandora-kernel.git 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 -- Signed-off-by: Jiri Kosina --- Reading git-diff-tree failed