OSDN Git Service

dma-buf: cma_heap: Fix mutex locking section
authorWeizhao Ouyang <o451686892@gmail.com>
Tue, 4 Jan 2022 07:35:45 +0000 (15:35 +0800)
committerSumit Semwal <sumit.semwal@linaro.org>
Thu, 13 Jan 2022 11:05:21 +0000 (16:35 +0530)
commit54329e6f7beea6af56c1230da293acc97d6a6ee7
tree69f3fd4e39a7df63d7c0f70b150040389d6a8de8
parent0499f419b76f94ede08304aad5851144813ac55c
dma-buf: cma_heap: Fix mutex locking section

Fix cma_heap_buffer mutex locking critical section to protect vmap_cnt
and vaddr.

Fixes: a5d2d29e24be ("dma-buf: heaps: Move heap-helper logic into the cma_heap implementation")
Signed-off-by: Weizhao Ouyang <o451686892@gmail.com>
Acked-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20220104073545.124244-1-o451686892@gmail.com
drivers/dma-buf/heaps/cma_heap.c