]> err.no Git - linux-2.6/commitdiff
IPoIB/cm: Set correct SG list in ipoib_cm_init_rx_wr()
authorRoland Dreier <rolandd@cisco.com>
Wed, 30 Jul 2008 14:21:46 +0000 (07:21 -0700)
committerRoland Dreier <rolandd@cisco.com>
Wed, 30 Jul 2008 14:21:46 +0000 (07:21 -0700)
wr->sg_list should be set to the sge pointer passed in, not
priv->cm.rx_sge.

Reported-by: Hoang-Nam Nguyen <HNGUYEN@de.ibm.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/ulp/ipoib/ipoib_cm.c

index 0f2d3045061a0e024e75cc14e12b1628a09779b3..7ebc400a4b3d33d7ea6440a7676a999b168c267e 100644 (file)
@@ -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;
 }