diff options
| author | Ralph Campbell <ralph.campbell@qlogic.com> | 2010-10-22 18:29:46 -0400 |
|---|---|---|
| committer | Roland Dreier <rolandd@cisco.com> | 2010-10-26 19:09:02 -0400 |
| commit | 9e43e0106d6f526724911e80adb97dbcec520b5d (patch) | |
| tree | 7cda71e5cf5bdd6be76a4f4fd685ed58cbcd9b8f | |
| parent | 82fdb0ab54096b8dbc8558e2dd37e9e0ac180db8 (diff) | |
IB/qib: Fix uninitialized pointer if CONFIG_PCI_MSI not set
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>
| -rw-r--r-- | drivers/infiniband/hw/qib/qib_init.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/qib/qib_init.c b/drivers/infiniband/hw/qib/qib_init.c index f1d16d3a01f6..f3b503936043 100644 --- a/drivers/infiniband/hw/qib/qib_init.c +++ b/drivers/infiniband/hw/qib/qib_init.c | |||
| @@ -1243,6 +1243,7 @@ static int __devinit qib_init_one(struct pci_dev *pdev, | |||
| 1243 | qib_early_err(&pdev->dev, "QLogic PCIE device 0x%x cannot " | 1243 | qib_early_err(&pdev->dev, "QLogic PCIE device 0x%x cannot " |
| 1244 | "work if CONFIG_PCI_MSI is not enabled\n", | 1244 | "work if CONFIG_PCI_MSI is not enabled\n", |
| 1245 | ent->device); | 1245 | ent->device); |
| 1246 | dd = ERR_PTR(-ENODEV); | ||
| 1246 | #endif | 1247 | #endif |
| 1247 | break; | 1248 | break; |
| 1248 | 1249 | ||
