Hui Wang
dbe634ce82
dmaengine: imx-sdma: Fix a possible memory leak in sdma_transfer_init
...
[ Upstream commit 1417f59ac0b02130ee56c0c50794b9b257be3d17 ]
If the function sdma_load_context() fails, the sdma_desc will be
freed, but the allocated desc->bd is forgot to be freed.
We already met the sdma_load_context() failure case and the log as
below:
[ 450.699064] imx-sdma 30bd0000.dma-controller: Timeout waiting for CH0 ready
...
In this case, the desc->bd will not be freed without this change.
Signed-off-by: Hui Wang <hui.wang@canonical.com>
Reviewed-by: Sascha Hauer <s.hauer@pengutronix.de>
Link: https://lore.kernel.org/r/20221130090800.102035-1-hui.wang@canonical.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-02-06 07:52:48 +01:00
..
bestcomm
dw
dw-axi-dmac
Add exception protection processing for vd in axi_chan_handle_err function
2023-01-24 07:17:58 +01:00
dw-edma
hsu
ioat
dmaengine: ioat: stop mod_timer from resurrecting deleted timer in __cleanup()
2022-10-26 13:22:43 +02:00
ipu
mediatek
dmaengine: mediatek:Fix PM usage reference leak of mtk_uart_apdma_alloc_chan_resources
2022-04-27 13:50:46 +02:00
ppc4xx
qcom
dmaengine: QCOM_HIDMA_MGMT depends on HAS_IOMEM
2021-06-23 14:41:23 +02:00
sh
dmaengine: Revert "dmaengine: shdma: Fix runtime PM imbalance on error"
2022-04-15 14:18:40 +02:00
ti
dmaengine: ti: Add missing put_device in ti_dra7_xbar_route_allocate
2022-07-12 16:30:50 +02:00
xilinx
dmaengine: xilinx_dma: call of_node_put() when breaking out of for_each_child_of_node()
2023-02-06 07:52:40 +01:00
acpi-dma.c
dmaengine: acpi: Avoid comparison GSI with Linux vIRQ
2021-09-26 14:07:08 +02:00
altera-msgdma.c
amba-pl08x.c
at_hdmac.c
dmaengine: at_hdmac: Check return code of dma_async_device_register
2022-11-25 17:42:10 +01:00
at_hdmac_regs.h
dmaengine: at_hdmac: Fix at_lli struct definition
2022-11-25 17:42:10 +01:00
at_xdmac.c
dmaengine: at_xdma: handle errors of at_xdmac_alloc_desc() correctly
2022-07-12 16:30:50 +02:00
bcm-sba-raid.c
bcm2835-dma.c
coh901318.c
coh901318.h
coh901318_lli.c
dma-axi-dmac.c
dma-jz4780.c
dmaengine.c
dmaengine: Fix double increment of client_count in dma_chan_get()
2023-02-06 07:52:39 +01:00
dmaengine.h
dmaengine: dmaengine_desc_callback_valid(): Check for callback_result
2021-11-17 09:48:46 +01:00
dmatest.c
ep93xx_dma.c
fsl-edma-common.c
fsl-edma-common.h
fsl-edma.c
fsl-qdma.c
dmaengine: fsl-qdma: check dma_set_mask return value
2021-07-20 16:10:40 +02:00
fsl_raid.c
fsl_raid.h
fsldma.c
fsldma.h
idma64.c
idma64.h
img-mdc-dma.c
imx-dma.c
dmaengine: imx-dma: configure the generic DMA type to make it work
2021-08-12 13:20:56 +02:00
imx-sdma.c
dmaengine: imx-sdma: Fix a possible memory leak in sdma_transfer_init
2023-02-06 07:52:48 +01:00
iop-adma.c
iop-adma.h
k3dma.c
Kconfig
dmaengine: ioat: depends on !UML
2021-09-26 14:07:11 +02:00
lpc18xx-dmamux.c
Makefile
mcf-edma.c
mic_x100_dma.c
mic_x100_dma.h
mmp_pdma.c
dmaengine: pxa/mmp: stop referencing config->slave_id
2022-01-27 09:19:39 +01:00
mmp_tdma.c
moxart-dma.c
mpc512x_dma.c
mv_xor.c
mv_xor.h
mv_xor_v2.c
dmaengine: mv_xor_v2: Fix a resource leak in mv_xor_v2_remove()
2022-11-25 17:42:06 +01:00
mxs-dma.c
nbpfaxi.c
of-dma.c
dmaengine: of-dma: router_xlate to return -EPROBE_DEFER if controller is not yet available
2021-08-26 08:36:13 -04:00
owl-dma.c
pch_dma.c
pl330.c
dmaengine: pl330: Fix lockdep warning about non-static key
2022-07-12 16:30:50 +02:00
pxa_dma.c
dmaengine: pxa_dma: use platform_get_irq_optional
2022-11-25 17:42:06 +01:00
s3c24xx-dma.c
sa11x0-dma.c
sirf-dma.c
sprd-dma.c
dmaengine: sprd: Cleanup in .remove() after pm_runtime_get_sync() failed
2022-08-25 11:18:35 +02:00
st_fdma.c
dmaengine: st_fdma: fix MODULE_ALIAS
2021-12-22 09:29:36 +01:00
st_fdma.h
ste_dma40.c
dmaengine: stedma40: add missing iounmap() on error in d40_probe()
2021-06-23 14:41:23 +02:00
ste_dma40_ll.c
ste_dma40_ll.h
stm32-dma.c
stm32-dmamux.c
stm32-mdma.c
dmaengine: stm32-mdma: remove GISR1 register
2022-06-14 18:11:43 +02:00
sun4i-dma.c
sun6i-dma.c
tegra20-apb-dma.c
tegra210-adma.c
dmaengine: tegra210-adma: fix global intr clear
2023-01-24 07:18:01 +01:00
timb_dma.c
TODO
txx9dmac.c
txx9dmac.h
uniphier-mdmac.c
virt-dma.c
virt-dma.h
xgene-dma.c
zx_dma.c