Skip to content
Commit 56ea1075 authored by Mark Brown's avatar Mark Brown
Browse files

spi: spidev: Hold spi_lock over all defererences of spi in release()



We use the spi_lock spinlock to protect against races between the device
being removed and file operations on the spidev.  This means that in the
removal path all references to the device need to be done under lock as
in removal we dropping references to the device.

Reported-by: default avatarVegard Nossum <vegard.nossum@oracle.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 8005c49d
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