diff mbox

IB/ipoib: Initialize ipoib_neigh list properly

Message ID 20100824205123.2742e194.weiny2@llnl.gov (mailing list archive)
State New, archived
Headers show

Commit Message

Ira Weiny Aug. 25, 2010, 3:51 a.m. UTC
None
diff mbox

Patch

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));