]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sdp: BUG2141 - fix refcnt bug
authorEldad Zinger <eldadz@mellanox.co.il>
Wed, 6 Oct 2010 09:52:10 +0000 (11:52 +0200)
committerMukesh Kacker <mukesh.kacker@oracle.com>
Tue, 6 Oct 2015 12:05:25 +0000 (05:05 -0700)
commit9c4bca694a1be60f114de4e175de00a42b24b79a
treeb9d8465adaad48126cbfba6f3336d991c5ffe431
parent49083c60b39e98f38d2138eadcff0cb266e0a88c
sdp: BUG2141 - fix refcnt bug

This bug is reproducable when sdpnetstat(1) is run while a socket is being
destructed. sdp_proc utilities might try to hold a refcnt for a socket that its
destruction already began. This is possible because sdp_proc utilities uses
sock_list to scan for sockets, but a socket is removed from that list only
after all its resourcs are freed.

Signed-off-by: Eldad Zinger <eldadz@mellanox.co.il>
drivers/infiniband/ulp/sdp/sdp_proc.c