From fd418e6a1dab68ecc0a68a6a43f7c53dad6dbe17 Mon Sep 17 00:00:00 2001 From: Wei Yongjun Date: Sun, 1 Sep 2013 09:01:00 +0800 Subject: [PATCH] spi/qspi: fix missing unlock on error in ti_qspi_start_transfer_one() Add the missing unlock before return from function ti_qspi_start_transfer_one() in the error handling case. Signed-off-by: Wei Yongjun Signed-off-by: Mark Brown --- drivers/spi/spi-ti-qspi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/spi/spi-ti-qspi.c b/drivers/spi/spi-ti-qspi.c index 136d71eb6f27e..e12d962a289f6 100644 --- a/drivers/spi/spi-ti-qspi.c +++ b/drivers/spi/spi-ti-qspi.c @@ -376,6 +376,7 @@ static int ti_qspi_start_transfer_one(struct spi_master *master, ret = qspi_transfer_msg(qspi, t); if (ret) { dev_dbg(qspi->dev, "transfer message failed\n"); + mutex_unlock(&qspi->list_lock); return -EINVAL; } -- 2.39.5