spi: spi-zynqmp-gqspi: Fix missing unlock on error in zynqmp_qspi_exec_op()
authorWei Yongjun <weiyongjun1@huawei.com>
Mon, 12 Apr 2021 16:00:25 +0000 (16:00 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 12 Apr 2021 16:07:39 +0000 (17:07 +0100)
commit6043357263fbe2df0bf0736d971ad5dce7d19dc1
tree112f59f10ccc1bdfa271d45a44725668b5a628b3
parent828b480977421e9fbe93ecbdc65689ec7cc1e834
spi: spi-zynqmp-gqspi: Fix missing unlock on error in zynqmp_qspi_exec_op()

Add the missing unlock before return from function zynqmp_qspi_exec_op()
in the error handling case.

Fixes: a0f65be6e880 ("spi: spi-zynqmp-gqspi: add mutex locking for exec_op")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Link: https://lore.kernel.org/r/20210412160025.194171-1-weiyongjun1@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-zynqmp-gqspi.c