From: Dan Carpenter Date: Mon, 6 Feb 2023 14:47:38 +0000 (+0300) Subject: spi: spidev: Fix double unlock in spidev_sync() X-Git-Tag: v6.6.17~5383^2~32 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=941811980df00161fe639c252dabe6488875887c;p=platform%2Fkernel%2Flinux-rpi.git 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 Link: https://lore.kernel.org/r/Y+ETCk7XKfAy8yWQ@kili Signed-off-by: Mark Brown --- 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 @@ -115,8 +115,6 @@ spidev_sync(struct spidev_data *spidev, struct spi_message *message) else status = spidev_sync_unlocked(spi, message); - mutex_unlock(&spidev->spi_lock); - mutex_unlock(&spidev->spi_lock); return status; }