Messages in this thread Patch in this message | | | Date | Sat, 10 Mar 2012 11:57:29 +0300 | From | Dan Carpenter <> | Subject | [patch] 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>
diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index 5ae1e84..ab1bdce 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c @@ -535,6 +535,7 @@ static void spi_pump_messages(struct kthread_work *work) if (ret) { dev_err(&master->dev, "failed to unprepare transfer hardware\n"); + spin_unlock_irqrestore(&master->queue_lock, flags); return; } }
| |