Files
linux/drivers
Crestez Dan Leonard dda5d00a2a iio: Fix error handling in iio_trigger_attach_poll_func
commit 9954382335 upstream.

When attaching a pollfunc iio_trigger_attach_poll_func will allocate a
virtual irq and call the driver's set_trigger_state function. Fix error
handling to undo previous steps if any fails.

In particular this fixes handling errors from a driver's
set_trigger_state function. When using triggered buffers a failure to
enable the trigger used to make the buffer unusable.

Signed-off-by: Crestez Dan Leonard <leonard.crestez@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-07-27 09:47:36 -07:00
..
2015-10-12 19:56:27 -07:00
2015-10-02 11:05:58 +09:00
2016-05-04 14:48:54 -07:00
2016-05-11 11:21:13 +02:00
2016-07-27 09:47:33 -07:00
2015-11-08 16:24:43 -05:00
2016-03-09 15:34:50 -08:00