diff options
author | Steve Wise <swise@opengridcomputing.com> | 2012-04-27 11:24:33 -0400 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2012-05-08 14:17:04 -0400 |
commit | bd61baaf59669accae2720799394a51fecabe5d9 (patch) | |
tree | 9c6ab2d10e030e7809920d3c6eee11203348cb7c /drivers/infiniband | |
parent | d48b97b403d23f6df0b990cee652bdf9a52337a3 (diff) |
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 <swise@opengridcomputing.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/hw/cxgb4/cm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/cxgb4/cm.c b/drivers/infiniband/hw/cxgb4/cm.c index 92b4c2b0308b..86542cd759f6 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, | |||
1593 | n, n->dev, 0); | 1593 | n, n->dev, 0); |
1594 | if (!ep->l2t) | 1594 | if (!ep->l2t) |
1595 | goto out; | 1595 | goto out; |
1596 | ep->mtu = dst_mtu(ep->dst); | 1596 | ep->mtu = dst_mtu(dst); |
1597 | ep->tx_chan = cxgb4_port_chan(n->dev); | 1597 | ep->tx_chan = cxgb4_port_chan(n->dev); |
1598 | ep->smac_idx = (cxgb4_port_viid(n->dev) & 0x7F) << 1; | 1598 | ep->smac_idx = (cxgb4_port_viid(n->dev) & 0x7F) << 1; |
1599 | step = cdev->rdev.lldi.ntxq / | 1599 | step = cdev->rdev.lldi.ntxq / |