mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 19:00:25 +00:00
spi: release lock on error path in spi_pump_messages()
We should release the lock here and enable IRQs before returning. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> [grant.likely: move unlock above dev_err() call] Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
This commit is contained in:
parent
054ebcc4a8
commit
9af4acc096
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue