On Wed, Dec 16, 2020 at 12:07:53PM +0200, Leon Romanovsky wrote: > From: Leon Romanovsky <leonro@xxxxxxxxxx> > > xa_alloc_cyclic() call returns positive number if ID allocation > succeeded but wrapped. It is not an error, so normalize the "ret" > variable to zero as marker of not-an-error. > > drivers/infiniband/core/restrack.c:261 rdma_restrack_add() > warn: 'ret' can be either negative or positive > > Fixes: fd47c2f99f04 ("RDMA/restrack: Convert internal DB from hash to XArray") > Reported-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx> > Signed-off-by: Leon Romanovsky <leonro@xxxxxxxxxx> > --- > drivers/infiniband/core/restrack.c | 1 + > 1 file changed, 1 insertion(+) Applied to for-rc, thanks Jason