提交 b9322252 编写于 作者: M Michael Grzeschik 提交者: Greg Kroah-Hartman

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: NMichael Grzeschik <m.grzeschik@pengutronix.de>
[rebased on top of the patchset]
Signed-off-by: NAlexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 551a8ac6
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册