On Wed, Oct 13, 2021 at 11:06:45AM +0300, Dan Carpenter wrote: > Return negative -ENOMEM instead of positive ENOMEM. Returning a postive > value will cause an Oops because it becomes an ERR_PTR() in the > create_qp() function. > > Fixes: 514aee660df4 ("RDMA: Globally allocate and release QP memory") > Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx> > Acked-by: Dennis Dalessandro <dennis.dalessandro@xxxxxxxxxxxxxxxxxxxx> > --- > drivers/infiniband/sw/rdmavt/qp.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Applied to for-rc, thanks Jason