From: Roland Dreier Date: Wed, 30 Jul 2008 14:21:46 +0000 (-0700) Subject: IPoIB/cm: Set correct SG list in ipoib_cm_init_rx_wr() X-Git-Tag: v2.6.27-rc3~73^2^4 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=e08198169ec5facb3d85bb455efa44a2f8327842;p=linux-2.6-omap-h63xx.git IPoIB/cm: Set correct SG list in ipoib_cm_init_rx_wr() wr->sg_list should be set to the sge pointer passed in, not priv->cm.rx_sge. Reported-by: Hoang-Nam Nguyen Signed-off-by: Roland Dreier --- diff --git a/drivers/infiniband/ulp/ipoib/ipoib_cm.c b/drivers/infiniband/ulp/ipoib/ipoib_cm.c index 0f2d3045061..7ebc400a4b3 100644 --- a/drivers/infiniband/ulp/ipoib/ipoib_cm.c +++ b/drivers/infiniband/ulp/ipoib/ipoib_cm.c @@ -337,7 +337,7 @@ static void ipoib_cm_init_rx_wr(struct net_device *dev, sge[i].length = PAGE_SIZE; wr->next = NULL; - wr->sg_list = priv->cm.rx_sge; + wr->sg_list = sge; wr->num_sge = priv->cm.num_frags; }