From patchwork Fri Oct 22 22:29:46 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ralph Campbell X-Patchwork-Id: 278221 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o9MMaWic008773 for ; Fri, 22 Oct 2010 22:36:33 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750837Ab0JVWgb (ORCPT ); Fri, 22 Oct 2010 18:36:31 -0400 Received: from vpn.pathscale.com ([198.186.3.75]:47773 "HELO mx.mv.qlogic.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with SMTP id S1751032Ab0JVWgb (ORCPT ); Fri, 22 Oct 2010 18:36:31 -0400 Received: from chromite.mv.qlogic.com (chromite.mv.qlogic.com [10.29.2.82]) by mx.mv.qlogic.com (Postfix) with ESMTP id B355E143006C; Fri, 22 Oct 2010 15:29:46 -0700 (PDT) Received: from chromite.mv.qlogic.com (localhost.localdomain [127.0.0.1]) by chromite.mv.qlogic.com (Postfix) with ESMTP id 797C014294D; Fri, 22 Oct 2010 15:29:46 -0700 (PDT) From: Ralph Campbell Subject: [PATCH 1/2] IB/qib: fix uninitialized pointer if CONFIG_PCI_MSI not set To: Roland Dreier Cc: linux-rdma@vger.kernel.org Date: Fri, 22 Oct 2010 15:29:46 -0700 Message-ID: <20101022222937.28161.50341.stgit@chromite.mv.qlogic.com> User-Agent: StGIT/0.14.3 MIME-Version: 1.0 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Fri, 22 Oct 2010 22:36:33 +0000 (UTC) diff --git a/drivers/infiniband/hw/qib/qib_init.c b/drivers/infiniband/hw/qib/qib_init.c index f1d16d3..f3b5039 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, 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;