diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2019-12-16 13:53:28 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-02-24 10:36:40 +0300 |
commit | 8a7aa4feeaeabc12181e1997a298eb73d2ed2d65 (patch) | |
tree | b27fa18a4e9cf957161f1a262e98d7e6de683fc0 /tools/bpf | |
parent | f99958a96c7f95ab1f8b335b362e2cd8e84dc890 (diff) | |
download | linux-8a7aa4feeaeabc12181e1997a298eb73d2ed2d65.tar.xz |
dmaengine: imx-sdma: Fix memory leak
[ Upstream commit 02939cd167095f16328a1bd5cab5a90b550606df ]
The current descriptor is not on any list of the virtual DMA channel.
Once sdma_terminate_all() is called when a descriptor is currently
in flight then this one is forgotten to be freed. We have to call
vchan_terminate_vdesc() on this descriptor to re-add it to the lists.
Now that we also free the currently running descriptor we can (and
actually have to) remove the current descriptor from its list also
for the cyclic case.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Reviewed-by: Robin Gong <yibin.gong@nxp.com>
Tested-by: Robin Gong <yibin.gong@nxp.com>
Link: https://lore.kernel.org/r/20191216105328.15198-10-s.hauer@pengutronix.de
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/bpf')
0 files changed, 0 insertions, 0 deletions