Weihang Li fcc57a7b2b RDMA/core: Use refcount_t instead of atomic_t on refcount of iwpm_admin_data
The refcount_t API will WARN on underflow and overflow of a reference
counter, and avoid use-after-free risks. Increase refcount_t from 0 to 1 is
regarded as there is a risk about use-after-free. So it should be set to 1
directly during initialization.

Link: https://lore.kernel.org/r/1622194663-2383-3-git-send-email-liweihang@huawei.com
Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2021-06-08 14:36:24 -03:00
..
2021-04-08 16:14:56 -03:00
2021-04-12 14:52:22 -03:00
2020-12-10 15:05:17 -04:00
2021-04-12 14:56:48 -03:00
2019-06-28 21:18:23 -03:00
2021-03-26 09:31:21 -03:00
2021-03-26 09:31:21 -03:00
2021-03-26 09:31:21 -03:00
2021-03-26 09:31:21 -03:00
2021-04-12 14:56:51 -03:00
2020-07-06 14:54:46 -03:00
2021-05-28 20:39:51 -03:00
2021-05-01 09:15:05 -07:00
2021-04-12 14:56:48 -03:00