diff options
| author | Marek Szyprowski <m.szyprowski@samsung.com> | 2026-10-26 10:54:12 +0100 |
|---|---|---|
| committer | Marek Szyprowski <m.szyprowski@samsung.com> | 2026-11-05 08:55:38 +0100 |
| commit | 494f40ffabcdc8d9fa4012b2c972690f25a0a40f (patch) | |
| tree | 08eac0bf3d58dcd46ec34c25325392d0b3fb704b /kernel/debug/debug_core.c | |
| parent | 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4 (diff) | |
dma-coherent: serialize reserved memory pool initialization
Multiple devices can share the same "shared-dma-pool" reserved memory
region, in which case the dma_coherent_mem structure is created by the
first device attached to it and stored in rmem->priv. To avoid the
potential race, serialize the check and initialization of rmem->priv
with a mutex.
Fixes: 7bfa5ab6fa1b ("drivers: dma-coherent: add initialization from device tree")
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20261026095423.966856-2-m.szyprowski@samsung.com
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Diffstat (limited to 'kernel/debug/debug_core.c')
0 files changed, 0 insertions, 0 deletions
