Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b6460366 authored by Wei Yongjun's avatar Wei Yongjun Committed by Mark Brown
Browse files

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: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 09222fc3
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
		}