staging: iio: industrialio-trigger: set iio_poll_func private_data
authorMichael Hennerich <michael.hennerich@analog.com>
Wed, 25 May 2011 12:42:07 +0000 (14:42 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 7 Jun 2011 19:28:41 +0000 (12:28 -0700)
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>
drivers/staging/iio/industrialio-trigger.c

index 615902333fb0d9cb34b555c25a535362bb781042..d504aa251cedb5fe280224c6970ed94c137c7ecd 100644 (file)
@@ -294,6 +294,7 @@ struct iio_poll_func
        pf->h = h;
        pf->thread = thread;
        pf->type = type;
+       pf->private_data = private;
 
        return pf;
 }