iio: industrialio-trigger: set iio_poll_func private_data
Subsystems (3)
PATCH 1/1 iio: industrialio-trigger: set iio_poll_func private_data
From: Michael Hennerich <[email protected]>
Failure to set iio_poll_func private_data, causes zero pointer access violations in all consumer trigger handlers.
Signed-off-by Michael Hennerich <[email protected]>
--- drivers/staging/iio/industrialio-trigger.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/staging/iio/industrialio-trigger.c +1 -0
@@ -294,6 +294,7 @@ struct iio_poll_func pf->h = h; pf->thread = thread; pf->type = type; + pf->private_data = private;return pf; }
Signature · 1 line
1.7.0.4
Quoted 4 lines · On 05/25/11 11:39, [email protected] wrote:
From: Michael Hennerich <[email protected]>
Failure to set
iio_poll_funcprivate_data, causes zero pointer access violations in all consumer trigger handlers.
Yikes. Good spot. Not one of my better bits of refactoring. Strange thing is I could have sworn I tested that, but it clearly won't work without your fix..
Quoted 2 lines
Signed-off-by Michael Hennerich <[email protected]>
Acked-by Jonathan Cameron <[email protected]>
Quoted 16 lines
--- drivers/staging/iio/industrialio-trigger.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)drivers/staging/iio/industrialio-trigger.c +1
-0@@ -294,6 +294,7 @@ struct iio_poll_func pf->h = h; pf->thread = thread; pf->type = type; + pf->private_data = private;return pf; }