Skip to content

Commit

Permalink
usb: chipidea: isr_reset_handler fix missing locking
Browse files Browse the repository at this point in the history
Move spin_lock under the done label, so the
lock will also be pulled in the error paths.

Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
[rebased on top of the patchset]
Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Michael Grzeschik authored and Greg Kroah-Hartman committed May 11, 2012
1 parent 551a8ac commit b932225
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/chipidea/udc.c
Original file line number Diff line number Diff line change
Expand Up @@ -645,9 +645,9 @@ __acquires(udc->lock)
if (udc->status == NULL)
retval = -ENOMEM;

done:
spin_lock(&udc->lock);

done:
if (retval)
dev_err(udc->dev, "error: %i\n", retval);
}
Expand Down

0 comments on commit b932225

Please sign in to comment.