iw_cxgb4: put ep reference in pass_accept_req()
authorSteve Wise <swise@opengridcomputing.com>
Wed, 13 Sep 2017 16:52:32 +0000 (09:52 -0700)
committerRaspbian kernel package updater <root@raspbian.org>
Sun, 8 Oct 2017 01:09:37 +0000 (01:09 +0000)
commitd0d86e28269fc569d1aaf6b5c373d3bbfeb28f3b
tree1694ff0c74fc7edfe05a39635ee38d6be4581fb2
parente9be437107893669fa9241497026dbe55a725ef3
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: f86fac79afec ("RDMA/iw_cxgb4: atomic find and reference for listening endpoints")
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/infiniband/hw/cxgb4/cm.c