Files
kernel_xiaomi_sm8250/kernel
Joakim Zhang 5ef6f81c32 dma-mapping: clear dev->dma_mem to NULL after freeing it
[ Upstream commit b07bc2347672cc8c7293c64499f1488278c5ca3d ]

Reproduced with below sequence:
dma_declare_coherent_memory()->dma_release_coherent_memory()
->dma_declare_coherent_memory()->"return -EBUSY" error

It will return -EBUSY from the dma_assign_coherent_memory()
in dma_declare_coherent_memory(), the reason is that dev->dma_mem
pointer has not been set to NULL after it's freed.

Fixes: cf65a0f6f6 ("dma-mapping: move all DMA mapping code to kernel/dma")
Signed-off-by: Joakim Zhang <joakim.zhang@cixtech.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-01-25 14:33:34 -08:00
..
2023-01-18 11:30:39 +01:00
2019-12-13 08:51:11 +01:00
2023-12-20 15:38:01 +01:00
2021-02-10 09:21:06 +01:00
2020-03-25 08:06:13 +01:00
2021-02-07 14:48:38 +01:00
2020-01-09 10:18:59 +01:00