Commit c11c4eeb authored by Michael Hennerich's avatar Michael Hennerich Committed by Greg Kroah-Hartman

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: default avatarMichael Hennerich <michael.hennerich@analog.com>
Acked-by: default avatarJonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent cddac88f
...@@ -294,6 +294,7 @@ struct iio_poll_func ...@@ -294,6 +294,7 @@ struct iio_poll_func
pf->h = h; pf->h = h;
pf->thread = thread; pf->thread = thread;
pf->type = type; pf->type = type;
pf->private_data = private;
return pf; return pf;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment