summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-ti-qspi.c
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2013-09-01 03:01:00 +0200
committerMark Brown <broonie@linaro.org>2013-09-01 14:47:55 +0200
commitb6460366fbadc160604f50047d0394c7fc39ceab (patch)
treed6d6773bffc0449115464bad5f8db9afcbccdbdb /drivers/spi/spi-ti-qspi.c
parentspi/qspi: Add compatible string for am4372. (diff)
downloadlinux-b6460366fbadc160604f50047d0394c7fc39ceab.tar.xz
linux-b6460366fbadc160604f50047d0394c7fc39ceab.zip
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 <yongjun_wei@trendmicro.com.cn> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/spi/spi-ti-qspi.c')
-rw-r--r--drivers/spi/spi-ti-qspi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/spi/spi-ti-qspi.c b/drivers/spi/spi-ti-qspi.c
index 136d71eb6f27..e12d962a289f 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;
}