]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
dmaengine: owl-dma: Fix a resource leak in the remove function
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 12 Dec 2020 16:25:35 +0000 (17:25 +0100)
committerAndrea Righi <andrea.righi@canonical.com>
Mon, 15 Mar 2021 14:09:16 +0000 (15:09 +0100)
commitecad2d7442035d1141d23143485fe33495581b84
treeb00187b1c0a8971b75708b8a27a27326b1e8a0af
parent7587d09c71297fd853836d98aa4425a75a44b9ae
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>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
drivers/dma/owl-dma.c