spi: spidev: Fix double unlock in spidev_sync()
This unlocks twice due to a merge issue.
Fixes: 35bba23e67
("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>
This commit is contained in:
Родитель
f8f5a7c902
Коммит
941811980d
|
@ -115,8 +115,6 @@ spidev_sync(struct spidev_data *spidev, struct spi_message *message)
|
||||||
else
|
else
|
||||||
status = spidev_sync_unlocked(spi, message);
|
status = spidev_sync_unlocked(spi, message);
|
||||||
|
|
||||||
mutex_unlock(&spidev->spi_lock);
|
|
||||||
|
|
||||||
mutex_unlock(&spidev->spi_lock);
|
mutex_unlock(&spidev->spi_lock);
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче