summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMichael Hennerich <michael.hennerich@analog.com>2011-05-25 14:42:07 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2011-06-07 21:28:41 +0200
commitc11c4eebdd75fc0f443a3f794a2ddc85afed1932 (patch)
treeb9014a00036079371ecc36acad836047c6efed2f /drivers
parentstaging: rts_pstor: use bitwise operator instead of logical one (diff)
downloadlinux-c11c4eebdd75fc0f443a3f794a2ddc85afed1932.tar.xz
linux-c11c4eebdd75fc0f443a3f794a2ddc85afed1932.zip
staging: iio: industrialio-trigger: set iio_poll_func private_data
Failure to set iio_poll_func private_data, causes zero pointer access violations in all consumer trigger handlers. Signed-off-by: Michael Hennerich <michael.hennerich@analog.com> Acked-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/iio/industrialio-trigger.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/iio/industrialio-trigger.c b/drivers/staging/iio/industrialio-trigger.c
index 615902333fb0..d504aa251ced 100644
--- a/drivers/staging/iio/industrialio-trigger.c
+++ b/drivers/staging/iio/industrialio-trigger.c
@@ -294,6 +294,7 @@ struct iio_poll_func
pf->h = h;
pf->thread = thread;
pf->type = type;
+ pf->private_data = private;
return pf;
}