diff options
| author | 2021-07-19 14:00:53 +0800 | |
|---|---|---|
| committer | 2021-07-30 09:34:26 -0300 | |
| commit | a0293eb24936ff30e5a23f9438fd4ad1c4009dbf (patch) | |
| tree | 0c8db95f2b80caf318a45141b7fbde54c78a1103 /samples/git:/ssh:/git@git.zx2c4.com | |
| parent | IB/hfi1: Adjust pkey entry in index 0 (diff) | |
| download | linux-dev-a0293eb24936ff30e5a23f9438fd4ad1c4009dbf.tar.xz linux-dev-a0293eb24936ff30e5a23f9438fd4ad1c4009dbf.zip | |
RDMA/hfi1: Convert from atomic_t to refcount_t on hfi1_devdata->user_refcount
refcount_t type and corresponding API can protect refcounters from
accidental underflow and overflow and further use-after-free situations.
Link: https://lore.kernel.org/r/1626674454-56075-1-git-send-email-xiyuyang19@fudan.edu.cn
Signed-off-by: Xiyu Yang <xiyuyang19@fudan.edu.cn>
Signed-off-by: Xin Tan <tanxin.ctf@gmail.com>
Tested-by: Josh Fisher <josh.fisher@cornelisnetworks.com>
Acked-by: Dennis Dalessandro <dennis.dalessandro@cornelisnetworks.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'samples/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
