]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
usb: cdc-wdm: Fix deadlock between write and resume
authorOliver Neukum <oliver@neukum.org>
Sat, 27 Feb 2010 19:57:12 +0000 (20:57 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 19 Mar 2010 14:24:17 +0000 (07:24 -0700)
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>
drivers/usb/class/cdc-wdm.c

index b57490508860f21406c01cc36c43f8e91b5b8c0f..189141ca4e0513c8775a70f8c125777ff410fbbc 100644 (file)
@@ -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