Skip to content

Commit

Permalink
IPoIB/cm: Set correct SG list in ipoib_cm_init_rx_wr()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Roland Dreier committed Jul 30, 2008
1 parent 6e86841 commit e081981
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/infiniband/ulp/ipoib/ipoib_cm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit e081981

Please sign in to comment.