diff options
author | Dan Carpenter <error27@gmail.com> | 2011-03-20 12:11:31 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-04-05 06:33:27 +0200 |
commit | 9c94b7a668ea7422ad75e97c3bfd6274b37495c6 (patch) | |
tree | d293bc820c7c4a8284d1564276a4c21a7cbf235e /drivers/staging | |
parent | staging: ft1000-pcmcia: Fix ft1000_dnld() to work also on 64bit architectures. (diff) | |
download | linux-9c94b7a668ea7422ad75e97c3bfd6274b37495c6.tar.xz linux-9c94b7a668ea7422ad75e97c3bfd6274b37495c6.zip |
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/staging')
-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( "cy_as_usb_end_point_config EP %s mismatch " "on enabled\n", an_ep->usb_ep_inst.name); #endif + spin_unlock_irqrestore(&an_dev->lock, flags); return -EINVAL; } |