]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sdp: fix for CMA reference count
authorEldad Zinger <eldadz@mellanox.co.il>
Wed, 20 Oct 2010 15:14:35 +0000 (17:14 +0200)
committerMukesh Kacker <mukesh.kacker@oracle.com>
Tue, 6 Oct 2015 12:05:31 +0000 (05:05 -0700)
commit8dc08e13f399e0fef7a6dcde80995d0f415b22d1
treea97c984593d7c0cee1f1c5c55fb79c080eed343b
parent2cbe8a478a18d64388bcb10bba0d4cd1e7a04411
sdp: fix for CMA reference count

When sdp_destroy_work() is invoked (due to the cma handler),
but "ssk->cma_timewait_timeout == 0", a socket reference was putted even though
it was never taken. This can happen in 2 scenarios:
1. sdp_destroy_work() locked the socket before sdp_close()
2. sdp_destroy_work() locked the socket after sdp_cma_timewait_timeout_work()

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