]> git.baikalelectronics.ru Git - kernel.git/commit
spi: Fix missing unlock on error in sp7021_spi_master_transfer_one()
authorYang Yingliang <yangyingliang@huawei.com>
Thu, 27 Jan 2022 11:58:15 +0000 (19:58 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 28 Jan 2022 13:06:52 +0000 (13:06 +0000)
commitd086c46a2cfd6bd36747d7d2bb92a04c6b8ca459
treeffc2044a90d16fa42a14d77e0ab2afbe0a93c469
parent99d3c1d21783f0a406bd53e4bc17af8da9089deb
spi: Fix missing unlock on error in sp7021_spi_master_transfer_one()

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

Fixes: 4d77bf8aa6c8 ("spi: Add spi driver for Sunplus SP7021")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20220127115815.3148950-1-yangyingliang@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-sunplus-sp7021.c