Skip to content

Commit

Permalink
Staging: westbridge/astoria: unlock on error path
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dan Carpenter authored and Greg Kroah-Hartman committed Apr 5, 2011
1 parent 14e5d8e commit 9c94b7a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/staging/westbridge/astoria/gadget/cyasgadget.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 9c94b7a

Please sign in to comment.