diff options
| author | Samuel Holland <[email protected]> | 2024-11-14 20:01:30 +0000 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2024-11-15 23:45:37 +0000 |
| commit | 1f181d1cda56c2fbe379c5ace1aa1fac6306669e (patch) | |
| tree | c48eb258edbf654b78c7cca34905b45b780532b8 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | |
| parent | genirq/proc: Use seq_put_decimal_ull_width() for decimal values (diff) | |
| download | kernel-1f181d1cda56c2fbe379c5ace1aa1fac6306669e.tar.gz kernel-1f181d1cda56c2fbe379c5ace1aa1fac6306669e.zip | |
irqchip/riscv-aplic: Prevent crash when MSI domain is missing
If the APLIC driver is probed before the IMSIC driver, the parent MSI
domain will be missing, which causes a NULL pointer dereference in
msi_create_device_irq_domain().
Avoid this by deferring probe until the parent MSI domain is available. Use
dev_err_probe() to avoid printing an error message when returning
-EPROBE_DEFER.
Fixes: ca8df97fe679 ("irqchip/riscv-aplic: Add support for MSI-mode")
Signed-off-by: Samuel Holland <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Link: https://lore.kernel.org/all/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions
