Commit 94181198 authored by Dan Carpenter's avatar Dan Carpenter Committed by Mark Brown

spi: spidev: Fix double unlock in spidev_sync()

This unlocks twice due to a merge issue.

Fixes: 35bba23e ("Merge remote-tracking branch 'spi/for-6.2' into spi-6.2")
Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Link: https://lore.kernel.org/r/Y+ETCk7XKfAy8yWQ@kiliSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent f8f5a7c9
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment