diff options
author | Crestez Dan Leonard <leonard.crestez@intel.com> | 2016-05-03 15:27:09 +0300 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2016-06-03 12:54:46 +0100 |
commit | 99543823357966ac938d9a310947e731b67338e6 (patch) | |
tree | b340a0e27c4a3c7ebbf2978809200c45eff77973 /Documentation | |
parent | 99147606155f09feccac67c65387dc62260b749b (diff) |
iio: Fix error handling in iio_trigger_attach_poll_func
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>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions