commit | e3524b269e451cff68b19f32b15448933a53a4f4 | [log] [tgz] |
---|---|---|
author | Bryan Tan <bryantan@vmware.com> | Wed Dec 20 09:51:40 2017 -0800 |
committer | Jason Gunthorpe <jgg@mellanox.com> | Thu Dec 21 16:06:07 2017 -0700 |
tree | 4ced0a83b6f8adcea83e478bfba004780ba71901 | |
parent | 30a366a9dabd05a0d218288b7d732649886b6a53 [diff] |
RDMA/vmw_pvrdma: Avoid use after free due to QP/CQ/SRQ destroy The use of wait queues in vmw_pvrdma for handling concurrent access to a resource leaves a race condition which can cause a use after free bug. Fix this by using the pattern from other drivers, complete() protected by dec_and_test to ensure complete() is called only once. Fixes: 29c8d9eba550 ("IB: Add vmw_pvrdma driver") Signed-off-by: Bryan Tan <bryantan@vmware.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>