Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 831cca58 authored by Steve Wise's avatar Steve Wise Committed by Greg Kroah-Hartman
Browse files

iw_cxgb4: put ep reference in pass_accept_req()



commit 3d318605f5e32ff44fb290d9b67573b34213c4c8 upstream.

The listening endpoint should always be dereferenced at the end of
pass_accept_req().

Fixes: f86fac79 ("RDMA/iw_cxgb4: atomic find and reference for listening endpoints")

Signed-off-by: default avatarSteve Wise <swise@opengridcomputing.com>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f184cf52
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2577,9 +2577,9 @@ static int pass_accept_req(struct c4iw_dev *dev, struct sk_buff *skb)
	c4iw_put_ep(&child_ep->com);
reject:
	reject_cr(dev, hwtid, skb);
out:
	if (parent_ep)
		c4iw_put_ep(&parent_ep->com);
out:
	return 0;
}