iw_cxgb4: use dst parameter in import_ep().
Subsystems (2)
PATCH 1/1 iw_cxgb4: use dst parameter in import_ep().
Function import_ep() is incorrectly using ep->dst instead of the dst ptr passed in. This causes a crash when accepting new rdma connections becase ep->dst is not initialized yet.
Signed-off-by Steve Wise <[email protected]>
---
drivers/infiniband/hw/cxgb4/cm.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/infiniband/hw/cxgb4/cm.c +1 -1
@@ -1596,7 +1596,7 @@ static int import_ep(struct c4iw_ep *ep, __be32 peer_ip, struct dst_entry *dst, n, n->dev, 0);if (!ep->l2t) goto out; - ep->mtu =dst_mtu (ep->dst); + ep->mtu =dst_mtu (dst); ep->tx_chan =cxgb4_port_chan (n->dev); ep->smac_idx = (cxgb4_port_viid (n->dev) &0x7F ) <<1 ; step = cdev->rdev.lldi.ntxq /
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html