crypto: ccp - ccp_dmaengine_unregister release dma channels
stable inclusion from stable-v5.10.110 commit 78622926fe01363d78b0f861bfa5c35223c0a645 bugzilla: https://gitee.com/openeuler/kernel/issues/I574AL Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=78622926fe01363d78b0f861bfa5c35223c0a645 -------------------------------- [ Upstream commit 54cce8ec ] ccp_dmaengine_register adds dma_chan->device_node to dma_dev->channels list but ccp_dmaengine_unregister didn't remove them. That can cause crashes in various dmaengine methods that tries to use dma_dev->channels Fixes: 58ea8abf ("crypto: ccp - Register the CCP as a DMA...") Signed-off-by: NDāvis Mosāns <davispuh@gmail.com> Acked-by: NJohn Allen <john.allen@amd.com> Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au> Signed-off-by: NSasha Levin <sashal@kernel.org> Signed-off-by: NYu Liao <liaoyu15@huawei.com> Reviewed-by: NWei Li <liwei391@huawei.com> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
Showing
想要评论请 注册 或 登录