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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 May 2021 07:50:19 +0000 (09:50 +0200)
commit73585b2714db72c69c462fc0b1119c33cb2d181a
tree24719f2d615cb321a0989ec01d19bcc0a3a17cfc
parent58ee5a0de192f698b136128154b32773d946ec47
spi: spi-zynqmp-gqspi: Fix missing unlock on error in zynqmp_qspi_exec_op()

[ Upstream commit 6043357263fbe2df0bf0736d971ad5dce7d19dc1 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/spi/spi-zynqmp-gqspi.c