linux/drivers/infiniband
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
..
core RDMA/core: Use refcount_t instead of atomic_t on refcount of iwpm_admin_data 2021-06-08 14:36:24 -03:00
hw RDMA/irdma: Fix return error sign from irdma_modify_qp 2021-06-07 20:21:10 -03:00
sw RDMA/rxe: Fix failure during driver load 2021-06-03 16:50:29 -03:00
ulp RDMA/rtrs: Avoid Wtautological-constant-out-of-range-compare 2021-05-31 15:38:08 -03:00
Kconfig RDMA/irdma: Add irdma Kconfig/Makefile and remove i40iw 2021-06-02 20:06:36 -03:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00