diff options
author | Dan Carpenter <error27@gmail.com> | 2011-03-20 14:11:31 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-04-04 21:33:27 -0700 |
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( "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; } |