Messages in this thread | | | Date | Fri, 30 Jul 2021 11:06:39 -0300 | From | Jason Gunthorpe <> | Subject | Re: [PATCH] RDMA/hfi1: Convert from atomic_t to refcount_t on hfi1_devdata->user_refcount |
| |
On Mon, Jul 19, 2021 at 02:00:53PM +0800, Xiyu Yang wrote: > refcount_t type and corresponding API can protect refcounters from > accidental underflow and overflow and further use-after-free situations. > > 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> > --- > drivers/infiniband/hw/hfi1/chip.c | 2 +- > drivers/infiniband/hw/hfi1/file_ops.c | 6 +++--- > drivers/infiniband/hw/hfi1/hfi.h | 3 ++- > drivers/infiniband/hw/hfi1/init.c | 2 +- > 4 files changed, 7 insertions(+), 6 deletions(-)
Applied to for-next, thanks
Jason
| |