summaryrefslogtreecommitdiff
path: root/drivers/iio/iio_core.h
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2013-10-04 15:06:00 +0400
committerJonathan Cameron <jic23@kernel.org>2013-10-12 15:04:17 +0400
commitf18e7a068a0a31250cdb251810f8f6224931c3f5 (patch)
tree9692a94465954c615370dec9cd82baeb4387a211 /drivers/iio/iio_core.h
parent9e69c935fad9fd5f0550c51e3bd251cd30033136 (diff)
downloadlinux-f18e7a068a0a31250cdb251810f8f6224931c3f5.tar.xz
iio: Return -ENODEV for file operations if the device has been unregistered
If the IIO device has been unregistered return -ENODEV for any further file operations like read() and ioctl(). This avoids userspace being able to grab new references to the device. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/iio_core.h')
0 files changed, 0 insertions, 0 deletions