Skip to content

Commit 56435b7

Browse files
rakurame96bjorn-helgaas
authored andcommitted
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 <lkp@intel.com> Closes: https://lore.kernel.org/r/202512230112.AaiGqMWM-lkp@intel.com/ Reported-by: Dan Carpenter <dan.carpenter@linaro.org> Signed-off-by: Rakuram Eswaran <rakuram.e96@gmail.com> Signed-off-by: Manivannan Sadhasivam <mani@kernel.org> [bhelgaas: commit log] Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Sai Krishna Musham <sai.krishna.musham@amd.com> Link: https://patch.msgid.link/20251223184003.32950-1-rakuram.e96@gmail.com
1 parent 6de23f8 commit 56435b7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/pci/controller/dwc/pcie-amd-mdb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ static int amd_mdb_setup_irq(struct amd_mdb_pcie *pcie,
389389
IRQF_NO_THREAD, NULL, pcie);
390390
if (err) {
391391
dev_err(dev, "Failed to request INTx IRQ %d, err=%d\n",
392-
irq, err);
392+
pcie->intx_irq, err);
393393
return err;
394394
}
395395

0 commit comments

Comments
 (0)