diff options
| author | Crestez Dan Leonard <leonard.crestez@intel.com> | 2016-05-03 15:27:09 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-07-27 09:47:36 -0700 |
| commit | dda5d00a2a7d988069f835bea9688be1ec1dd062 (patch) | |
| tree | ce8bc20934915df001a629d22e79db44d79570e5 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
| parent | fe29254aed62f14742a9d7fc6056aebac5ae8876 (diff) | |
iio: Fix error handling in iio_trigger_attach_poll_func
commit 99543823357966ac938d9a310947e731b67338e6 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>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions
