From: Wei Yongjun Date: Sun, 1 Sep 2013 01:01:00 +0000 (+0800) Subject: spi/qspi: fix missing unlock on error in ti_qspi_start_transfer_one() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b6460366fbadc160604f50047d0394c7fc39ceab;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 --- 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; }