diff options
author | Hariprasad S <hariprasad@chelsio.com> | 2016-05-06 12:48:04 -0400 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-05-13 19:38:08 -0400 |
commit | c878b706ffcb1f71908491dcadb2ff556fc86d95 (patch) | |
tree | 28a0e72a80434d1b9b940606110cf62d3eca966f | |
parent | 944661dd97f4f257cd914fffec7eb80832ff9141 (diff) |
RDMA/iw_cxgb4: Free skb in case of arp failure in _c4iw_free_ep()
Arp failure for send_mpa_reply/reject() is handled by freeing the
mpa_skb in c4iw_free_ep() before releasing ep.
Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
-rw-r--r-- | drivers/infiniband/hw/cxgb4/cm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/cxgb4/cm.c b/drivers/infiniband/hw/cxgb4/cm.c index c247812fd38c..6557240cc6b9 100644 --- a/drivers/infiniband/hw/cxgb4/cm.c +++ b/drivers/infiniband/hw/cxgb4/cm.c | |||
@@ -364,6 +364,8 @@ void _c4iw_free_ep(struct kref *kref) | |||
364 | cxgb4_remove_tid(ep->com.dev->rdev.lldi.tids, 0, ep->hwtid); | 364 | cxgb4_remove_tid(ep->com.dev->rdev.lldi.tids, 0, ep->hwtid); |
365 | dst_release(ep->dst); | 365 | dst_release(ep->dst); |
366 | cxgb4_l2t_release(ep->l2t); | 366 | cxgb4_l2t_release(ep->l2t); |
367 | if (ep->mpa_skb) | ||
368 | kfree_skb(ep->mpa_skb); | ||
367 | } | 369 | } |
368 | kfree(ep); | 370 | kfree(ep); |
369 | } | 371 | } |