Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b9322252 authored by Michael Grzeschik's avatar Michael Grzeschik Committed by Greg Kroah-Hartman
Browse files

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: default avatarMichael Grzeschik <m.grzeschik@pengutronix.de>
[rebased on top of the patchset]
Signed-off-by: default avatarAlexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 551a8ac6
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -645,9 +645,9 @@ __acquires(udc->lock)
	if (udc->status == NULL)
	if (udc->status == NULL)
		retval = -ENOMEM;
		retval = -ENOMEM;


done:
	spin_lock(&udc->lock);
	spin_lock(&udc->lock);


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