提交 9af4acc0 编写于 作者: D Dan Carpenter 提交者: Grant Likely

spi: release lock on error path in spi_pump_messages()

We should release the lock here and enable IRQs before returning.
Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
[grant.likely: move unlock above dev_err() call]
Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
上级 054ebcc4
......@@ -533,6 +533,7 @@ static void spi_pump_messages(struct kthread_work *work)
if (master->busy) {
ret = master->unprepare_transfer_hardware(master);
if (ret) {
spin_unlock_irqrestore(&master->queue_lock, flags);
dev_err(&master->dev,
"failed to unprepare transfer hardware\n");
return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册