diff options
author | Weihang Li <liweihang@huawei.com> | 2021-05-28 12:37:38 +0300 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2021-06-08 21:04:36 +0300 |
commit | ec9bf373f2458f4b5f1ece8b93a07e6204081667 (patch) | |
tree | 0deb7c0393d151262cfb2e41bd019889fd3de5a9 /samples | |
parent | a5e27fb68fcce3885cfc02a1ecd7d02fe3f02a34 (diff) | |
download | linux-ec9bf373f2458f4b5f1ece8b93a07e6204081667.tar.xz |
RDMA/core: Use refcount_t instead of atomic_t on refcount of ib_uverbs_device
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-8-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 'samples')
0 files changed, 0 insertions, 0 deletions