usb: chipidea: isr_reset_handler fix missing locking
authorMichael Grzeschik <m.grzeschik@pengutronix.de>
Fri, 11 May 2012 14:25:50 +0000 (17:25 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 May 2012 23:54:11 +0000 (16:54 -0700)
commitb9322252727bc3af6e64b8d75058403edeaddea5
tree0459830fdcb9a86d071fb914348e91b211759ce6
parent551a8ac64e4ea9e9e2b8656ee3bf94c8d0821d41
usb: chipidea: isr_reset_handler fix missing locking

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>
drivers/usb/chipidea/udc.c