diff options
author | Michael Hennerich <michael.hennerich@analog.com> | 2011-05-25 08:42:07 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-06-07 15:28:41 -0400 |
commit | c11c4eebdd75fc0f443a3f794a2ddc85afed1932 (patch) | |
tree | b9014a00036079371ecc36acad836047c6efed2f | |
parent | cddac88f437b0370d3c0ac4c0b2d6c1ff914522d (diff) |
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>
-rw-r--r-- | drivers/staging/iio/industrialio-trigger.c | 1 |
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 | |||
294 | pf->h = h; | 294 | pf->h = h; |
295 | pf->thread = thread; | 295 | pf->thread = thread; |
296 | pf->type = type; | 296 | pf->type = type; |
297 | pf->private_data = private; | ||
297 | 298 | ||
298 | return pf; | 299 | return pf; |
299 | } | 300 | } |