projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
09222fc
)
spi/qspi: fix missing unlock on error in ti_qspi_start_transfer_one()
author
Wei Yongjun
<yongjun_wei@trendmicro.com.cn>
Sun, 1 Sep 2013 01:01:00 +0000
(09:01 +0800)
committer
Mark Brown
<broonie@linaro.org>
Sun, 1 Sep 2013 12:47:55 +0000
(13:47 +0100)
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>
drivers/spi/spi-ti-qspi.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/spi/spi-ti-qspi.c
b/drivers/spi/spi-ti-qspi.c
index 136d71eb6f27e6523569f4dbb2a7176c7e1f13b0..e12d962a289f61823b673098fce9e49dc8da94f7 100644
(file)
--- 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;
}