linux-imx/drivers/iio/buffer
David Lechner cb0f3f0c10 iio: buffer-dmaengine: fix releasing dma channel on error
commit 84c65d8008 upstream.

If dma_get_slave_caps() fails, we need to release the dma channel before
returning an error to avoid leaking the channel.

Fixes: 2d6ca60f32 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-09-12 11:11:40 +02:00
..
industrialio-buffer-cb.c
industrialio-buffer-dma.c
industrialio-buffer-dmaengine.c iio: buffer-dmaengine: fix releasing dma channel on error 2024-09-12 11:11:40 +02:00
industrialio-hw-consumer.c
industrialio-triggered-buffer.c
Kconfig
kfifo_buf.c
Makefile