spi: Fix missing unlock on error in sp7021_spi_master_transfer_one()
Subsystems (2)
PATCH 1/1 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.
--- drivers/spi/spi-sunplus-sp7021.c | 1 + 1 file changed, 1 insertion(+)
drivers/spi/spi-sunplus-sp7021.c +1 -0
@@ -351,6 +351,7 @@ static int sp7021_spi_master_transfer_one(struct spi_controller *ctlr, struct spif (!wait_for_completion_interruptible_timeout (&pspim->isr_done, timeout)) {dev_err (&spi->dev,"wait_for_completion err\n" ); +mutex_unlock (&pspim->buf_lock);return -ETIMEDOUT ; }
Signature · 1 line
2.25.1
Mark Brown
maintainerQuoted 4 lines · Yang Yingliang
Add the missing unlock before return from
sp7021_spi_master_transfer_one()in the error handling case.
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next
Thanks!
[1/1] spi: Fix missing unlock on error in sp7021_spi_master_transfer_one()
commit: 20dc69ca1023b7e4c4af3c3495aa5a91e1a9be39
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark