aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/westbridge/astoria
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2011-03-20 14:11:31 +0300
committerGreg Kroah-Hartman <gregkh@suse.de>2011-04-04 21:33:27 -0700
commit9c94b7a668ea7422ad75e97c3bfd6274b37495c6 (patch)
treed293bc820c7c4a8284d1564276a4c21a7cbf235e /drivers/staging/westbridge/astoria
parentstaging: ft1000-pcmcia: Fix ft1000_dnld() to work also on 64bit architectures. (diff)
downloadlinux-dev-9c94b7a668ea7422ad75e97c3bfd6274b37495c6.tar.xz
linux-dev-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/westbridge/astoria')
-rw-r--r--drivers/staging/westbridge/astoria/gadget/cyasgadget.c1
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;
}