From: Dan Carpenter Date: Sun, 20 Mar 2011 11:11:31 +0000 (+0300) Subject: Staging: westbridge/astoria: unlock on error path X-Git-Tag: v3.0~1060^2~20 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9c94b7a668ea7422ad75e97c3bfd6274b37495c6;p=platform%2Fkernel%2Flinux-amlogic.git Staging: westbridge/astoria: unlock on error path There is an unlock missing on this error path. Signed-off-by: Dan Carpenter Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/westbridge/astoria/gadget/cyasgadget.c b/drivers/staging/westbridge/astoria/gadget/cyasgadget.c index defa05c..be851ca 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; }