diff options
author | Hariprasad S <hariprasad@chelsio.com> | 2016-05-06 22:18:07 +0530 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-05-13 19:38:09 -0400 |
commit | f86fac79afecb41682886785364b15cb13f22280 (patch) | |
tree | bc99d51ce1c3419ea9e559e4f7428e0f811a4191 /firmware | |
parent | e8667a9b35c550e3daf4519058a52252bf41d9db (diff) | |
download | linux-f86fac79afecb41682886785364b15cb13f22280.tar.bz2 |
RDMA/iw_cxgb4: atomic find and reference for listening endpoints
Add get_ep_from_stid() which will atomically find and reference the
endpoint struct if found. This avoids touch-after-free races between
threads destroying listening endpoints and the CPL processing thread
processing an incoming PASS_ACCEPT_REQ CPL.
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'firmware')
0 files changed, 0 insertions, 0 deletions