Skip to content
Commit 89092ddd authored by Oliver Neukum's avatar Oliver Neukum Committed by Jiri Kosina
Browse files

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: default avatarOliver Neukum <oliver@neukum.org>

--
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 2feaace4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment