RDMA/hns: Use refcount_t instead of atomic_t for SRQ reference counting
mainline inclusion from mainline-v5.12-rc1 commit 33649cd3 category: bugfix bugzilla: 174002 CVE:NA Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=33649cd3f9497523c7110337b9c6f08ab43746c6 ---------------------------------------------------------------------- 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-10-git-send-email-liweihang@huawei.com Signed-off-by:Weihang Li <liweihang@huawei.com> Signed-off-by:
Jason Gunthorpe <jgg@nvidia.com> Signed-off-by:
wangsirong <wangsirong@huawei.com> Reviewed-by:
ChunZhi Hu <huchunzhi@huawei.com> Signed-off-by:
Zheng Zengkai <zhengzengkai@huawei.com>
Loading
Please sign in to comment