kernel_optimize_test/drivers/dma/mediatek
Christophe JAILLET ceb97fbe48 dmaengine: mediatek: mtk-hsdma: Fix a resource leak in the error handling path of the probe function
commit 33cbd54dc515cc04b5a603603414222b4bb1448d upstream.

'mtk_hsdma_hw_deinit()' should be called in the error handling path of the
probe function to undo a previous 'mtk_hsdma_hw_init()' call, as already
done in the remove function.

Fixes: 548c4597e9 ("dmaengine: mediatek: Add MediaTek High-Speed DMA controller for MT7622 and MT7623 SoC")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/20201219124718.182664-1-christophe.jaillet@wanadoo.fr
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-01-17 14:17:01 +01:00
..
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile dmaengine updates for v5.3-rc1 2019-07-17 09:55:43 -07:00
mtk-cqdma.c dmaengine: mediatek: convert tasklets to use new tasklet_setup() API 2020-09-18 12:19:06 +05:30
mtk-hsdma.c dmaengine: mediatek: mtk-hsdma: Fix a resource leak in the error handling path of the probe function 2021-01-17 14:17:01 +01:00
mtk-uart-apdma.c dmaengine: mediatek: simplify the return expression of mtk_uart_apdma_runtime_resume() 2020-09-18 12:32:37 +05:30