https://github.com/torvalds/linux
Revision 56ea1075e7f07724cf9b91039aa0968a0c70112f authored by Mark Brown on 16 November 2015, 13:57:37 UTC, committed by Mark Brown on 16 December 2015, 12:09:35 UTC
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: Vegard Nossum <vegard.nossum@oracle.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 8005c49
History
Tip revision: 56ea1075e7f07724cf9b91039aa0968a0c70112f authored by Mark Brown on 16 November 2015, 13:57:37 UTC
spi: spidev: Hold spi_lock over all defererences of spi in release()
Tip revision: 56ea107
File Mode Size
Documentation
arch
block
certs
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.get_maintainer.ignore -rw-r--r-- 31 bytes
.gitignore -rw-r--r-- 1.2 KB
.mailmap -rw-r--r-- 5.4 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 94.9 KB
Kbuild -rw-r--r-- 2.6 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 327.8 KB
Makefile -rw-r--r-- 53.5 KB
README -rw-r--r-- 18.2 KB
REPORTING-BUGS -rw-r--r-- 7.3 KB

README

back to top