Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0f224fde authored by Koba Ko's avatar Koba Ko Committed by Greg Kroah-Hartman
Browse files

crypto: ccp - Release dma channels before dmaengine unrgister



[ Upstream commit 68dbe80f5b510c66c800b9e8055235c5b07e37d1 ]

A warning is shown during shutdown,

__dma_async_device_channel_unregister called while 2 clients hold a reference
WARNING: CPU: 15 PID: 1 at drivers/dma/dmaengine.c:1110 __dma_async_device_channel_unregister+0xb7/0xc0

Call dma_release_channel for occupied channles before dma_async_device_unregister.

Fixes: 54cce8ecb925 ("crypto: ccp - ccp_dmaengine_unregister release dma channels")
Reported-by: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarKoba Ko <koba.ko@canonical.com>
Acked-by: default avatarTom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 95c4e20a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment