summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/ulp
diff options
context:
space:
mode:
authorWeihang Li <liweihang@huawei.com>2021-05-28 17:37:42 +0800
committerJason Gunthorpe <jgg@nvidia.com>2021-06-08 14:59:05 -0300
commit7183451f846d22e9fee665756824c9c2cc9cf377 (patch)
treeebdabf1e7e40feea0d8f5fafb61efc5b629e5fbd /drivers/infiniband/ulp
parent8f9513d89f0417d3ca0a99b5f63c84b4cf2ed5fa (diff)
downloadlinux-7183451f846d22e9fee665756824c9c2cc9cf377.tar.bz2
RDMA/cxgb4: Use refcount_t instead of atomic_t for 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-12-git-send-email-liweihang@huawei.com Cc: Potnuri Bharat Teja <bharat@chelsio.com> Signed-off-by: Weihang Li <liweihang@huawei.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers/infiniband/ulp')
0 files changed, 0 insertions, 0 deletions