https://github.com/torvalds/linux
Revision c6fdd8e5d0c65bb8821dc6da26ee1a2ddd58b3cc authored by Tilman Schmidt on 24 October 2012, 08:44:32 UTC, committed by David S. Miller on 26 October 2012, 06:20:36 UTC
The delayed work function int_in_work() may call usb_reset_device()
and thus, indirectly, the driver's pre_reset method. Trying to
cancel the work synchronously in that situation would deadlock.
Fix by avoiding cancel_work_sync() in the pre_reset method.

If the reset was NOT initiated by int_in_work() this might cause
int_in_work() to run after the post_reset method, with urb_int_in
already resubmitted, so handle that case gracefully.

Signed-off-by: Tilman Schmidt <tilman@imap.cc>
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 910a578
History
Tip revision: c6fdd8e5d0c65bb8821dc6da26ee1a2ddd58b3cc authored by Tilman Schmidt on 24 October 2012, 08:44:32 UTC
bas_gigaset: fix pre_reset handling
Tip revision: c6fdd8e
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 1.2 KB
.mailmap -rw-r--r-- 4.4 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 92.7 KB
Kbuild -rw-r--r-- 2.5 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 222.4 KB
Makefile -rw-r--r-- 46.4 KB
README -rw-r--r-- 18.2 KB
REPORTING-BUGS -rw-r--r-- 3.3 KB

README

back to top