diff options
| author | Nam Cao <[email protected]> | 2025-08-11 05:41:44 +0000 |
|---|---|---|
| committer | Bjorn Helgaas <[email protected]> | 2025-08-12 16:31:24 +0000 |
| commit | 3f69f2e78799bf76e5dfe74f2eda4d67812d4edc (patch) | |
| tree | 6076610e33e9aa90cd9cafa4c31c46ad4d184a5c | |
| parent | Linux 6.17-rc1 (diff) | |
| download | kernel-3f69f2e78799bf76e5dfe74f2eda4d67812d4edc.tar.gz kernel-3f69f2e78799bf76e5dfe74f2eda4d67812d4edc.zip | |
PCI: xilinx: Fix NULL pointer dereference in xilinx_pcie_intr_handler()
f29861aa301c5 ("PCI: xilinx: Switch to msi_create_parent_irq_domain()")
changed xilinx_pcie::msi_domain from child devices' interrupt domain to
Xilinx AXI bridge's interrupt domain.
However, xilinx_pcie_intr_handler() wasn't changed and still reads Xilinx
AXI bridge's interrupt domain from xilinx_pcie::msi_domain->parent. This
pointer is NULL now.
Update xilinx_pcie_intr_handler() to read the correct interrupt domain
pointer.
Fixes: f29861aa301c5 ("PCI: xilinx: Switch to msi_create_parent_irq_domain()")
Signed-off-by: Nam Cao <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Link: https://patch.msgid.link/[email protected]
| -rw-r--r-- | drivers/pci/controller/pcie-xilinx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/controller/pcie-xilinx.c b/drivers/pci/controller/pcie-xilinx.c index f121836c3cf4..937ea6ae1ac4 100644 --- a/drivers/pci/controller/pcie-xilinx.c +++ b/drivers/pci/controller/pcie-xilinx.c @@ -400,7 +400,7 @@ static irqreturn_t xilinx_pcie_intr_handler(int irq, void *data) if (val & XILINX_PCIE_RPIFR1_MSI_INTR) { val = pcie_read(pcie, XILINX_PCIE_REG_RPIFR2) & XILINX_PCIE_RPIFR2_MSG_DATA; - domain = pcie->msi_domain->parent; + domain = pcie->msi_domain; } else { val = (val & XILINX_PCIE_RPIFR1_INTR_MASK) >> XILINX_PCIE_RPIFR1_INTR_SHIFT; |
