aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/cxgb4
diff options
context:
space:
mode:
authorWeihang Li <liweihang@huawei.com>2021-05-28 17:37:41 +0800
committerJason Gunthorpe <jgg@nvidia.com>2021-06-08 14:58:51 -0300
commit8f9513d89f0417d3ca0a99b5f63c84b4cf2ed5fa (patch)
tree98dd4ec5b5709c4fc537ff127b02af7f7097a32e /drivers/infiniband/hw/cxgb4
parentRDMA/hns: Use refcount_t instead of atomic_t for SRQ reference counting (diff)
downloadlinux-dev-8f9513d89f0417d3ca0a99b5f63c84b4cf2ed5fa.tar.xz
linux-dev-8f9513d89f0417d3ca0a99b5f63c84b4cf2ed5fa.zip
RDMA/hns: Use refcount_t instead of atomic_t for QP reference counting
The refcount_t API will WARN on underflow and overflow of a reference counter, and avoid use-after-free risks. Link: https://lore.kernel.org/r/1622194663-2383-11-git-send-email-liweihang@huawei.com Signed-off-by: Weihang Li <liweihang@huawei.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers/infiniband/hw/cxgb4')
0 files changed, 0 insertions, 0 deletions