summaryrefslogtreecommitdiffstats
path: root/drivers/iio/industrialio-event.c
diff options
context:
space:
mode:
authorLars-Peter Clausen2013-10-04 13:07:00 +0200
committerJonathan Cameron2013-10-12 13:07:11 +0200
commita95194569f697a6cc10d00f9b9b3d21b0b820520 (patch)
treeb314a9155207e34ca0964d4ac3f127dcf2c87fd8 /drivers/iio/industrialio-event.c
parentiio: Wakeup poll and blocking reads when the device is unregistered (diff)
downloadkernel-qcow2-linux-a95194569f697a6cc10d00f9b9b3d21b0b820520.tar.gz
kernel-qcow2-linux-a95194569f697a6cc10d00f9b9b3d21b0b820520.tar.xz
kernel-qcow2-linux-a95194569f697a6cc10d00f9b9b3d21b0b820520.zip
iio:buffer: Add proper locking for iio_update_buffers()
We need to make sure that in-kernel users of iio_update_buffers() do not race against each other or against unregistration of the device. So we need to take both the mlock and the info_exist_lock when calling iio_update_buffers() from a in-kernel consumer. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/industrialio-event.c')
0 files changed, 0 insertions, 0 deletions