summaryrefslogtreecommitdiff
path: root/drivers/regulator
diff options
context:
space:
mode:
authorSamuel Holland <samuel.holland@sifive.com>2024-11-14 12:01:30 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-12-05 14:01:23 +0100
commit285a07810ab3bcedc2bd380ebacbf6b4942a889a (patch)
treed1d9007dc6b8b795d570ce55a381b07b0c794832 /drivers/regulator
parent3fc6fc23d07dec0395b917d9d2ba364e60d988df (diff)
downloadlinux-285a07810ab3bcedc2bd380ebacbf6b4942a889a.tar.gz
linux-285a07810ab3bcedc2bd380ebacbf6b4942a889a.tar.bz2
linux-285a07810ab3bcedc2bd380ebacbf6b4942a889a.zip
irqchip/riscv-aplic: Prevent crash when MSI domain is missing
[ Upstream commit 1f181d1cda56c2fbe379c5ace1aa1fac6306669e ] 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 <samuel.holland@sifive.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lore.kernel.org/all/20241114200133.3069460-1-samuel.holland@sifive.com Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/regulator')
0 files changed, 0 insertions, 0 deletions