Re: [PATCH] spi: spidev: Fix user-space memory access.

2014-06-20 Thread dsneddon
I just noticed this patch breaks when CONFIG_COMPAT isn't defined. Please ignore this patch for now. > When the spidev module tries to access the user space memory passed in via > an IOCTL the compat_ptr function should be called to ensure > compatibility between kernel space and user space. > >

[PATCH] spi: spidev: Fix user-space memory access.

2014-06-19 Thread dsneddon
When the spidev module tries to access the user space memory passed in via an IOCTL the compat_ptr function should be called to ensure compatibility between kernel space and user space. Signed-off-by: Dan Sneddon --- drivers/spi/spidev.c | 10 ++ 1 file changed, 6 insertions(+), 4 deleti