diff options
| author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2020-12-12 17:25:35 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-03-04 10:26:28 +0100 |
| commit | fe0a870739bade89bff048f4015f2387673375c3 (patch) | |
| tree | c65d9bcff094ffe403d0b9766ad3c9bce13c6551 /drivers/dma | |
| parent | 6f4fdb448b4c9078fc2b6e03ad3c1009e2e8fa7f (diff) | |
| download | linux-fe0a870739bade89bff048f4015f2387673375c3.tar.gz linux-fe0a870739bade89bff048f4015f2387673375c3.tar.bz2 linux-fe0a870739bade89bff048f4015f2387673375c3.zip | |
dmaengine: owl-dma: Fix a resource leak in the remove function
[ Upstream commit 1f0a16f04113f9f0ab0c8e6d3abe661edab549e6 ]
A 'dma_pool_destroy()' call is missing in the remove function.
Add it.
This call is already made in the error handling path of the probe function.
Fixes: 47e20577c24d ("dmaengine: Add Actions Semi Owl family S900 DMA driver")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/20201212162535.95727-1-christophe.jaillet@wanadoo.fr
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/dma')
| -rw-r--r-- | drivers/dma/owl-dma.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/dma/owl-dma.c b/drivers/dma/owl-dma.c index af20e9a790a2..bb9c361e224b 100644 --- a/drivers/dma/owl-dma.c +++ b/drivers/dma/owl-dma.c @@ -1201,6 +1201,7 @@ static int owl_dma_remove(struct platform_device *pdev) owl_dma_free(od); clk_disable_unprepare(od->clk); + dma_pool_destroy(od->lli_pool); return 0; } |
