Skip to content
Commit 54cce8ec authored by Dāvis Mosāns's avatar Dāvis Mosāns Committed by Herbert Xu
Browse files

crypto: ccp - ccp_dmaengine_unregister release dma channels

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: default avatarDāvis Mosāns <davispuh@gmail.com>
Acked-by: default avatarJohn Allen <john.allen@amd.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 280ee3c3
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment