]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
dmaengine: dw-edma: Fix crash on loading/unloading driver
authorGustavo Pimentel <Gustavo.Pimentel@synopsys.com>
Thu, 18 Feb 2021 19:04:06 +0000 (20:04 +0100)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 30 Jun 2021 06:26:47 +0000 (08:26 +0200)
commite1e5a4aa66dd8e7dcd70c26f64955419eb5e0f94
tree3b631e33a8435f257a773c71fb280c823f02c92b
parent703777fd9284d875b2566715bbae2cee79f7c6ab
dmaengine: dw-edma: Fix crash on loading/unloading driver

BugLink: https://bugs.launchpad.net/bugs/1931896
[ Upstream commit e970dcc4bd8e0a1376e794fc81d41d0fc98262dd ]

When the driver is compiled as a module and loaded if we try to unload
it, the Kernel shows a crash log. This Kernel crash is due to the
dma_async_device_unregister() call done after deleting the channels,
this patch fixes this issue.

Signed-off-by: Gustavo Pimentel <gustavo.pimentel@synopsys.com>
Link: https://lore.kernel.org/r/4aa850c035cf7ee488f1d3fb6dee0e37be0dce0a.1613674948.git.gustavo.pimentel@synopsys.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
drivers/dma/dw-edma/dw-edma-core.c