USB: fix location of statement label in dummy-hcd
authorAlan Stern <stern@rowland.harvard.edu>
Tue, 4 Sep 2007 13:53:24 +0000 (09:53 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 12 Oct 2007 21:55:24 +0000 (14:55 -0700)
This patch (as984) fixes a rather elementary mistake in dummy_hcd.
The new statement label should come before the spin_unlock_irqrestore,
not after it.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/dummy_hcd.c

index 58e4d720880519520ca5f98257f0b44fdd475f63..6479a36d6f0efdf4d07dc79a28291c8319edda52 100644 (file)
@@ -1001,8 +1001,8 @@ static int dummy_urb_enqueue (
        if (!timer_pending (&dum->timer))
                mod_timer (&dum->timer, jiffies + 1);
 
-       spin_unlock_irqrestore (&dum->lock, flags);
  done:
+       spin_unlock_irqrestore(&dum->lock, flags);
        return rc;
 }