Commit 26ea153c authored by Russell King's avatar Russell King Committed by Huang Xiaojia
Browse files

ARM: footbridge: fix PCI interrupt mapping

stable inclusion
from stable-v4.19.189
commit 2643da6aa57920d9159a1a579fb04f89a2b0d29a
category: bugfix
bugzilla: https://gitee.com/src-openeuler/kernel/issues/I944W0
CVE: CVE-2021-46909

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=2643da6aa57920d9159a1a579fb04f89a2b0d29a



--------------------------------

commit 30e3b4f2 upstream

Since commit 30fdfb92 ("PCI: Add a call to pci_assign_irq() in
pci_device_probe()"), the PCI code will call the IRQ mapping function
whenever a PCI driver is probed. If these are marked as __init, this
causes an oops if a PCI driver is loaded or bound after the kernel has
initialised.

Fixes: 30fdfb92 ("PCI: Add a call to pci_assign_irq() in pci_device_probe()")
Signed-off-by: default avatarRussell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
conflicts:
	arch/arm/mach-footbridge/personal-pci.c
Signed-off-by: default avatarHuang Xiaojia <huangxiaojia2@huawei.com>
parent 415aa2f1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment