summaryrefslogtreecommitdiffstats
path: root/include/linux/mlx5/driver.h
diff options
context:
space:
mode:
authorBryan Tan2017-12-20 18:51:40 +0100
committerJason Gunthorpe2017-12-22 00:06:07 +0100
commite3524b269e451cff68b19f32b15448933a53a4f4 (patch)
tree4ced0a83b6f8adcea83e478bfba004780ba71901 /include/linux/mlx5/driver.h
parentRDMA/vmw_pvrdma: Use refcount_dec_and_test to avoid warning (diff)
downloadkernel-qcow2-linux-e3524b269e451cff68b19f32b15448933a53a4f4.tar.gz
kernel-qcow2-linux-e3524b269e451cff68b19f32b15448933a53a4f4.tar.xz
kernel-qcow2-linux-e3524b269e451cff68b19f32b15448933a53a4f4.zip
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>
Diffstat (limited to 'include/linux/mlx5/driver.h')
0 files changed, 0 insertions, 0 deletions