mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
14e5d8ef5b
commit
9c94b7a668
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue