staging:iio:events: Make sure userspace buffer is large enough
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 26 Oct 2011 16:27:43 +0000 (17:27 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 27 Nov 2011 00:30:31 +0000 (16:30 -0800)
commitdc8f52643d494eaa844002ca866d30fda142db4f
treefdfa4efad5f3e435378f9b62b95e70a66f18f90b
parent0403e0d643809f1608448ada38a1877f26b7bf5d
staging:iio:events: Make sure userspace buffer is large enough

Make sure that the userspace buffer is large enough to hold a iio_event_data
struct before writing to it.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/industrialio-core.c