diff options
author | Dan Carpenter <error27@gmail.com> | 2023-02-06 17:47:38 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-02-06 14:51:33 +0000 |
commit | 941811980df00161fe639c252dabe6488875887c (patch) | |
tree | 1e724cfd527064b3fdf516becd5f2a8975891be2 /drivers/spi/spidev.c | |
parent | f8f5a7c902776c18598963b359046ddf0728be84 (diff) | |
download | lwn-941811980df00161fe639c252dabe6488875887c.tar.gz lwn-941811980df00161fe639c252dabe6488875887c.zip |
spi: spidev: Fix double unlock in spidev_sync()
This unlocks twice due to a merge issue.
Fixes: 35bba23e6732 ("Merge remote-tracking branch 'spi/for-6.2' into spi-6.2")
Signed-off-by: Dan Carpenter <error27@gmail.com>
Link: https://lore.kernel.org/r/Y+ETCk7XKfAy8yWQ@kili
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spidev.c')
-rw-r--r-- | drivers/spi/spidev.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/spi/spidev.c b/drivers/spi/spidev.c index f836567c631b..5a038c667401 100644 --- a/drivers/spi/spidev.c +++ b/drivers/spi/spidev.c @@ -116,8 +116,6 @@ spidev_sync(struct spidev_data *spidev, struct spi_message *message) status = spidev_sync_unlocked(spi, message); mutex_unlock(&spidev->spi_lock); - - mutex_unlock(&spidev->spi_lock); return status; } |