Staging: westbridge/astoria: unlock on error path
authorDan Carpenter <error27@gmail.com>
Sun, 20 Mar 2011 11:11:31 +0000 (14:11 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 5 Apr 2011 04:33:27 +0000 (21:33 -0700)
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>
drivers/staging/westbridge/astoria/gadget/cyasgadget.c

index defa05cd5e50fff3d7ca94ad6b6125bdea41f1b5..be851ca54cecbf934bfdfe4f6f56390d024f5ddb 100644 (file)
@@ -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;
        }