mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-13 14:14:37 +00:00
usb: cdc-wdm: Fix deadlock between write and resume
The new runtime PM scheme allows resume() to have no locks. This fixes the deadlock. Signed-off-by: Oliver Neukum <neukum@b1-systems.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
d93d16e9aa
commit
338124c1f1
1 changed files with 2 additions and 2 deletions
|
@ -839,10 +839,10 @@ static int wdm_resume(struct usb_interface *intf)
|
|||
int rv;
|
||||
|
||||
dev_dbg(&desc->intf->dev, "wdm%d_resume\n", intf->minor);
|
||||
mutex_lock(&desc->lock);
|
||||
|
||||
clear_bit(WDM_SUSPENDING, &desc->flags);
|
||||
rv = recover_from_urb_loss(desc);
|
||||
mutex_unlock(&desc->lock);
|
||||
|
||||
return rv;
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue