summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spidev.c
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2023-02-06 15:47:38 +0100
committerMark Brown <broonie@kernel.org>2023-02-06 15:51:33 +0100
commit941811980df00161fe639c252dabe6488875887c (patch)
tree1e724cfd527064b3fdf516becd5f2a8975891be2 /drivers/spi/spidev.c
parentspi: Merge fixes (diff)
downloadlinux-941811980df00161fe639c252dabe6488875887c.tar.xz
linux-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 '')
-rw-r--r--drivers/spi/spidev.c2
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;
}