diff options
| author | Will McVicker <[email protected]> | 2025-04-24 18:04:19 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2025-05-01 16:00:58 +0000 |
| commit | 95deee37a12364f410d22c6a8383f59738a2fef3 (patch) | |
| tree | a8e85c93096656021a2418e2eb2bc7fcbf9d26b5 /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | |
| parent | Linux 6.15-rc4 (diff) | |
| download | kernel-95deee37a12364f410d22c6a8383f59738a2fef3.tar.gz kernel-95deee37a12364f410d22c6a8383f59738a2fef3.zip | |
platform: Fix race condition during DMA configure at IOMMU probe time
To avoid a race between the IOMMU probing thread and the device driver
async probing thread during configuration of the platform DMA, update
`platform_dma_configure()` to read `dev->driver` once and test if it's
NULL before using it. This ensures that we don't de-reference an invalid
platform driver pointer if the device driver is asynchronously bound
while configuring the DMA.
Fixes: bcb81ac6ae3c ("iommu: Get DT/ACPI parsing into the proper probe path")
Signed-off-by: Will McVicker <[email protected]>
Reviewed-by: Robin Murphy <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c')
0 files changed, 0 insertions, 0 deletions
