1
linux/drivers/spi
David Brownell 25d5cb4b03 spi: remove some spidev oops-on-rmmod paths
Somehow the spidev code forgot to include a critical mechanism: when the
underlying device is removed (e.g.  spi_master rmmod), open file
descriptors must be prevented from issuing new I/O requests to that
device.  On penalty of the oopsing reported by Sebastian Siewior
<bigeasy@tglx.de> ...

This is a partial fix, adding handshaking between the lower level (SPI
messaging) and the file operations using the spi_dev.  (It also fixes an
issue where reads and writes didn't return the number of bytes sent or
received.)

There's still a refcounting issue to be addressed (separately).

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Reported-by: Sebastian Siewior <bigeasy@tglx.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-05-24 09:56:14 -07:00
..
at25.c
atmel_spi.c
atmel_spi.h
au1550_spi.c
Kconfig spi_mpc83xx: much improved driver 2008-05-13 08:02:25 -07:00
Makefile
mpc52xx_psc_spi.c mpc5200_psc_spi: typo fix in header block 2008-05-14 19:11:12 -07:00
omap2_mcspi.c
omap_uwire.c
pxa2xx_spi.c spi: pxa2xx_spi clock resume bugfix 2008-05-13 08:02:23 -07:00
spi_bfin5xx.c
spi_bitbang.c
spi_butterfly.c
spi_imx.c
spi_lm70llp.c
spi_mpc83xx.c spi_mpc83xx: much improved driver 2008-05-13 08:02:25 -07:00
spi_s3c24xx_gpio.c
spi_s3c24xx.c spi_s3c24xx signedness fix 2008-05-01 08:04:01 -07:00
spi_sh_sci.c
spi_txx9.c
spi.c
spidev.c spi: remove some spidev oops-on-rmmod paths 2008-05-24 09:56:14 -07:00
tle62x0.c
xilinx_spi.c