Home
last modified time | relevance | path

Searched hist:"82 eb481da64586ccd287b2b2c5a086202c65e7eb" (Results 1 – 2 of 2) sorted by relevance

/linux/drivers/infiniband/hw/hns/
H A Dhns_roce_hem.hdiff 82eb481da64586ccd287b2b2c5a086202c65e7eb Fri May 21 11:29:54 CEST 2021 Weihang Li <liweihang@huawei.com> RDMA/hns: Use refcount_t APIs for HEM

refcount_t is better than integer for reference counting, it will WARN on
overflow/underflow and avoid use-after-free risks.

Link: https://lore.kernel.org/r/1621589395-2435-5-git-send-email-liweihang@huawei.com
Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
H A Dhns_roce_hem.cdiff 82eb481da64586ccd287b2b2c5a086202c65e7eb Fri May 21 11:29:54 CEST 2021 Weihang Li <liweihang@huawei.com> RDMA/hns: Use refcount_t APIs for HEM

refcount_t is better than integer for reference counting, it will WARN on
overflow/underflow and avoid use-after-free risks.

Link: https://lore.kernel.org/r/1621589395-2435-5-git-send-email-liweihang@huawei.com
Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>