linux/drivers/iio/buffer
David Lechner 84c65d8008 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: 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>
2024-07-29 20:31:23 +01:00
..
industrialio-buffer-cb.c iio: buffer: Return error if no callback is given 2020-12-03 19:32:40 +00:00
industrialio-buffer-dma.c iio: buffer-dma: Enable support for DMABUFs 2024-06-30 11:29:24 +01:00
industrialio-buffer-dmaengine.c iio: buffer-dmaengine: fix releasing dma channel on error 2024-07-29 20:31:23 +01:00
industrialio-hw-consumer.c iio: hw_consumer: Use struct_size() helper in kzalloc() 2022-01-23 18:03:37 +00:00
industrialio-triggered-buffer.c iio: triggered-buffer: prevent possible freeing of wrong buffer 2023-11-26 17:17:04 +00:00
Kconfig iio: buffer: Kconfig: add title for IIO_TRIGGERED_BUFFER symbol 2020-09-29 17:27:08 +01:00
kfifo_buf.c iio: add missing MODULE_DESCRIPTION() macros 2024-06-13 19:19:23 +01:00
Makefile iio: Add hardware consumer buffer support 2018-01-10 10:30:05 +00:00