diff options
author | Dan Carpenter <error27@gmail.com> | 2011-03-20 07:11:31 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-04-05 00:33:27 -0400 |
commit | 9c94b7a668ea7422ad75e97c3bfd6274b37495c6 (patch) | |
tree | d293bc820c7c4a8284d1564276a4c21a7cbf235e /drivers | |
parent | 14e5d8ef5beedf47005b1433096c0e30815da9b3 (diff) |
Staging: westbridge/astoria: unlock on error path
There is an unlock missing on this error path.
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/westbridge/astoria/gadget/cyasgadget.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/westbridge/astoria/gadget/cyasgadget.c b/drivers/staging/westbridge/astoria/gadget/cyasgadget.c index defa05cd5e50..be851ca54cec 100644 --- a/drivers/staging/westbridge/astoria/gadget/cyasgadget.c +++ b/drivers/staging/westbridge/astoria/gadget/cyasgadget.c | |||
@@ -587,6 +587,7 @@ static int cyasgadget_enable( | |||
587 | "cy_as_usb_end_point_config EP %s mismatch " | 587 | "cy_as_usb_end_point_config EP %s mismatch " |
588 | "on enabled\n", an_ep->usb_ep_inst.name); | 588 | "on enabled\n", an_ep->usb_ep_inst.name); |
589 | #endif | 589 | #endif |
590 | spin_unlock_irqrestore(&an_dev->lock, flags); | ||
590 | return -EINVAL; | 591 | return -EINVAL; |
591 | } | 592 | } |
592 | 593 | ||