From patchwork Wed Aug 25 03:51:23 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ira Weiny X-Patchwork-Id: 130841 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o7P3vs9b002593 for ; Wed, 25 Aug 2010 03:57:54 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752227Ab0HYD5x (ORCPT ); Tue, 24 Aug 2010 23:57:53 -0400 Received: from nspiron-1.llnl.gov ([128.115.41.81]:3931 "EHLO nspiron-1.llnl.gov" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751684Ab0HYD5x (ORCPT ); Tue, 24 Aug 2010 23:57:53 -0400 X-Attachments: None Received: from eris.llnl.gov (HELO jeepcj7.llnl.gov) ([134.9.2.84]) by nspiron-1.llnl.gov with SMTP; 24 Aug 2010 20:57:52 -0700 Date: Tue, 24 Aug 2010 20:51:23 -0700 From: Ira Weiny To: Roland Dreier Cc: "linux-rdma@vger.kernel.org" , Ralph Campbell , Tom Elken , "John A. Gregor" Subject: [PATCH] IB/ipoib: Initialize ipoib_neigh list properly Message-Id: <20100824205123.2742e194.weiny2@llnl.gov> X-Mailer: Sylpheed 3.0.2 (GTK+ 2.10.4; x86_64-unknown-linux-gnu) 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 (demeter.kernel.org [140.211.167.41]); Wed, 25 Aug 2010 03:57:54 +0000 (UTC) diff --git a/drivers/infiniband/ulp/ipoib/ipoib_main.c b/drivers/infiniband/ulp/ipoib/ipoib_main.c index b4b2257..fa38ede 100644 --- a/drivers/infiniband/ulp/ipoib/ipoib_main.c +++ b/drivers/infiniband/ulp/ipoib/ipoib_main.c @@ -882,6 +882,7 @@ struct ipoib_neigh *ipoib_neigh_alloc(struct neighbour *neighbour, if (!neigh) return NULL; + INIT_LIST_HEAD(&neigh->list); neigh->neighbour = neighbour; neigh->dev = dev; memset(&neigh->dgid.raw, 0, sizeof (union ib_gid));