diff options
author | Jiri Slaby <jslaby@suse.cz> | 2010-06-21 11:02:40 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-06-30 11:16:06 -0400 |
commit | 10ca4425714a6115c5d865718d64874a1e1ea09a (patch) | |
tree | eac8a90e3b0b9436efe5c969510b22d2cdb657b5 /drivers/usb/serial/qcserial.c | |
parent | 1c815577823951ff082fe1201fdd5efec5e6e8ea (diff) |
USB: gadget/printer, fix sleep inside atomic
Stanse found that sleep is called inside atomic context created by
lock_printer_io spinlock in several functions. It's used in process
context only and some functions sleep inside its critical section. As
this is not allowed for spinlocks, switch it to mutex.
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Craig W. Nadler <craig@nadler.us>
Acked-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/serial/qcserial.c')
0 files changed, 0 insertions, 0 deletions