diff options
author | 2023-12-14 16:25:26 +0800 | |
---|---|---|
committer | 2023-12-15 12:32:45 +0100 | |
commit | b07bc2347672cc8c7293c64499f1488278c5ca3d (patch) | |
tree | aca1a94c5a8140811dce24fdbcb962e25dedfa7f /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | swiotlb: reduce area lock contention for non-primary IO TLB pools (diff) | |
download | wireguard-linux-b07bc2347672cc8c7293c64499f1488278c5ca3d.tar.xz wireguard-linux-b07bc2347672cc8c7293c64499f1488278c5ca3d.zip |
dma-mapping: clear dev->dma_mem to NULL after freeing it
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: cf65a0f6f6ff ("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>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions