Commit e0819816 authored by Roland Dreier's avatar Roland Dreier

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: default avatarHoang-Nam Nguyen <HNGUYEN@de.ibm.com>
Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
parent 6e86841d
...@@ -337,7 +337,7 @@ static void ipoib_cm_init_rx_wr(struct net_device *dev, ...@@ -337,7 +337,7 @@ static void ipoib_cm_init_rx_wr(struct net_device *dev,
sge[i].length = PAGE_SIZE; sge[i].length = PAGE_SIZE;
wr->next = NULL; wr->next = NULL;
wr->sg_list = priv->cm.rx_sge; wr->sg_list = sge;
wr->num_sge = priv->cm.num_frags; wr->num_sge = priv->cm.num_frags;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment