diff options
author | 2024-07-23 11:32:21 -0500 | |
---|---|---|
committer | 2024-07-29 20:31:23 +0100 | |
commit | 84c65d8008764a8fb4e627ff02de01ec4245f2c4 (patch) | |
tree | 35c9b8895ba0cc16dc541220a1438482027f8467 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | iio: adc: ad7606: remove frstdata check for serial mode (diff) | |
download | wireguard-linux-84c65d8008764a8fb4e627ff02de01ec4245f2c4.tar.xz wireguard-linux-84c65d8008764a8fb4e627ff02de01ec4245f2c4.zip |
iio: buffer-dmaengine: fix releasing dma channel on error
If dma_get_slave_caps() fails, we need to release the dma channel before
returning an error to avoid leaking the channel.
Fixes: 2d6ca60f3284 ("iio: Add a DMAengine framework based buffer")
Signed-off-by: David Lechner <dlechner@baylibre.com>
Link: https://patch.msgid.link/20240723-iio-fix-dmaengine-free-on-error-v1-1-2c7cbc9b92ff@baylibre.com
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions