Skip to content

Commit

Permalink
USB: fix location of statement label in dummy-hcd
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alan Stern authored and Greg Kroah-Hartman committed Oct 12, 2007
1 parent e015268 commit 63f991b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/gadget/dummy_hcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 63f991b

Please sign in to comment.