From: Steve Wise Date: Fri, 27 Apr 2012 15:24:33 +0000 (-0500) Subject: RDMA/cxgb4: Use dst parameter in import_ep() X-Git-Tag: v3.5-rc1~171^2^2~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bd61baaf59669accae2720799394a51fecabe5d9;p=profile%2Fivi%2Fkernel-x86-ivi.git RDMA/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 Cc: Signed-off-by: Roland Dreier --- diff --git a/drivers/infiniband/hw/cxgb4/cm.c b/drivers/infiniband/hw/cxgb4/cm.c index 92b4c2b..86542cd 100644 --- a/drivers/infiniband/hw/cxgb4/cm.c +++ b/drivers/infiniband/hw/cxgb4/cm.c @@ -1593,7 +1593,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 /