Staging: westbridge/astoria: unlock on error path
Subsystems (2)
PATCH 1/1 Staging: westbridge/astoria: unlock on error path
There is an unlock missing on this error path.
Signed-off-by Dan Carpenter <[email protected]>
---
This driver does not compile for me.
drivers/staging/westbridge/astoria/gadget/cyasgadget.c +1 -0
@@ -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 ; }