|
@@ -2077,8 +2077,10 @@ static int import_ep(struct c4iw_ep *ep, int iptype, __u8 *peer_ip,
|
|
}
|
|
}
|
|
ep->l2t = cxgb4_l2t_get(cdev->rdev.lldi.l2t,
|
|
ep->l2t = cxgb4_l2t_get(cdev->rdev.lldi.l2t,
|
|
n, pdev, rt_tos2priority(tos));
|
|
n, pdev, rt_tos2priority(tos));
|
|
- if (!ep->l2t)
|
|
|
|
|
|
+ if (!ep->l2t) {
|
|
|
|
+ dev_put(pdev);
|
|
goto out;
|
|
goto out;
|
|
|
|
+ }
|
|
ep->mtu = pdev->mtu;
|
|
ep->mtu = pdev->mtu;
|
|
ep->tx_chan = cxgb4_port_chan(pdev);
|
|
ep->tx_chan = cxgb4_port_chan(pdev);
|
|
ep->smac_idx = cxgb4_tp_smt_idx(adapter_type,
|
|
ep->smac_idx = cxgb4_tp_smt_idx(adapter_type,
|