Skip to content

Commit b646036

Browse files
Wei Yongjunbroonie
authored andcommitted
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>
1 parent 09222fc commit b646036

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎drivers/spi/spi-ti-qspi.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,7 @@ static int ti_qspi_start_transfer_one(struct spi_master *master,
376376
ret = qspi_transfer_msg(qspi, t);
377377
if (ret) {
378378
dev_dbg(qspi->dev, "transfer message failed\n");
379+
mutex_unlock(&qspi->list_lock);
379380
return -EINVAL;
380381
}
381382

0 commit comments

Comments
 (0)