staging:iio:events: Don't copy data to user-space with a locked spinlock.
authorArve Hjønnevåg <arve@android.com>
Tue, 16 Oct 2012 03:58:20 +0000 (20:58 -0700)
committerArve Hjønnevåg <arve@android.com>
Mon, 1 Jul 2013 21:16:11 +0000 (14:16 -0700)
commit90acaa4de6ac63fda8bfa4f605de89ddd7019bda
treea533ee2ef41d1dce467494d0872de1e34911e5e9
parent7572b1e72912783a7f660921bc66fe82d0a92952
staging:iio:events: Don't copy data to user-space with a locked spinlock.

iio_event_chrdev_read would return -EFAULT if the user-space page was
not resident.

Change-Id: I4ac5d3bc791bb503d014d9db576b9d6d522505b2
Signed-off-by: Arve Hjønnevåg <arve@android.com>
drivers/iio/industrialio-event.c