Skip to content

Commit

Permalink
spi: spidev: Fix double unlock in spidev_sync()
Browse files Browse the repository at this point in the history
This unlocks twice due to a merge issue.

Fixes: 35bba23 ("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>
  • Loading branch information
Dan Carpenter authored and Mark Brown committed Feb 6, 2023
1 parent f8f5a7c commit 9418119
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/spi/spidev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 9418119

Please sign in to comment.