From: Rakuram Eswaran Date: Tue, 23 Dec 2025 18:40:03 +0000 (+0530) Subject: PCI: amd-mdb: Correct IRQ number in INTx error message X-Git-Tag: v7.1-rc1~151^2~12^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=56435b70f778995c696d53624ba93a429aa38432;p=thirdparty%2Fkernel%2Fstable.git PCI: amd-mdb: Correct IRQ number in INTx error message The INTx devm_request_irq() failure path logs an incorrect IRQ number. The printed 'irq' variable refers to a previous MDB interrupt mapping and does not correspond to the INTx IRQ being requested. Fix the error message to report pcie->intx_irq, which is the IRQ associated with the failing request. Reported-by: kernel test robot Closes: https://lore.kernel.org/r/202512230112.AaiGqMWM-lkp@intel.com/ Reported-by: Dan Carpenter Signed-off-by: Rakuram Eswaran Signed-off-by: Manivannan Sadhasivam [bhelgaas: commit log] Signed-off-by: Bjorn Helgaas Reviewed-by: Sai Krishna Musham Link: https://patch.msgid.link/20251223184003.32950-1-rakuram.e96@gmail.com --- diff --git a/drivers/pci/controller/dwc/pcie-amd-mdb.c b/drivers/pci/controller/dwc/pcie-amd-mdb.c index 3c6e837465bb7..7e50e11fbffda 100644 --- a/drivers/pci/controller/dwc/pcie-amd-mdb.c +++ b/drivers/pci/controller/dwc/pcie-amd-mdb.c @@ -389,7 +389,7 @@ static int amd_mdb_setup_irq(struct amd_mdb_pcie *pcie, IRQF_NO_THREAD, NULL, pcie); if (err) { dev_err(dev, "Failed to request INTx IRQ %d, err=%d\n", - irq, err); + pcie->intx_irq, err); return err; }