mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-26 18:30:54 +07:00
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 <HNGUYEN@de.ibm.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
This commit is contained in:
parent
6e86841d05
commit
e08198169e
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user