summaryrefslogtreecommitdiff
path: root/usr
diff options
context:
space:
mode:
authorCrestez Dan Leonard <leonard.crestez@intel.com>2016-05-03 12:27:09 (GMT)
committerJonathan Cameron <jic23@kernel.org>2016-06-03 11:54:46 (GMT)
commit99543823357966ac938d9a310947e731b67338e6 (patch)
treeb340a0e27c4a3c7ebbf2978809200c45eff77973 /usr
parent99147606155f09feccac67c65387dc62260b749b (diff)
downloadlinux-99543823357966ac938d9a310947e731b67338e6.tar.xz
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 'usr')
0 files changed, 0 insertions, 0 deletions