IB/qib: Fix uninitialized pointer if CONFIG_PCI_MSI not set
authorRalph Campbell <ralph.campbell@qlogic.com>
Fri, 22 Oct 2010 22:29:46 +0000 (15:29 -0700)
committerRoland Dreier <rolandd@cisco.com>
Tue, 26 Oct 2010 23:09:02 +0000 (16:09 -0700)
If CONFIG_PCI_MSI is not set, and a QLE7140 is present, the pointer
"dd" is uninitialized.

Signed-off-by: Ralph Campbell <ralph.campbell@qlogic.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/qib/qib_init.c

index f1d16d3a01f66c72ab004b62dbb6575dde11ba02..f3b50393604307a92fd1ee0b4e1f2e9bd706607c 100644 (file)
@@ -1243,6 +1243,7 @@ static int __devinit qib_init_one(struct pci_dev *pdev,
                qib_early_err(&pdev->dev, "QLogic PCIE device 0x%x cannot "
                      "work if CONFIG_PCI_MSI is not enabled\n",
                      ent->device);
+               dd = ERR_PTR(-ENODEV);
 #endif
                break;