diff options
| author | Marek Szyprowski <m.szyprowski@samsung.com> | 2026-10-26 10:54:13 +0100 |
|---|---|---|
| committer | Marek Szyprowski <m.szyprowski@samsung.com> | 2026-11-05 08:55:38 +0100 |
| commit | 7ad92b81b415de806957b19828fc4777a9cf2216 (patch) | |
| tree | 9133aa65f1d3fd00cf9c60a5763e99b87963e0a0 /kernel/debug/debug_core.c | |
| parent | 494f40ffabcdc8d9fa4012b2c972690f25a0a40f (diff) | |
dma: swiotlb: Serialize restricted DMA pool initialization
Multiple devices can share the same restricted DMA pool, in which case
the io_tlb_mem structure is allocated and initialized 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: 0b84e4f8b793 ("swiotlb: Add restricted DMA pool initialization")
Closes: https://sashiko.dev/#/bug/linux-6fda7589-591d-4a68-b6e1-b1561f867319
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20261026095423.966856-3-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
