linux/drivers/infiniband/sw/rdmavt
Dan Carpenter 663991f328 RDMA/rdmavt: Fix error code in rvt_create_qp()
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: 514aee660d ("RDMA: Globally allocate and release QP memory")
Link: https://lore.kernel.org/r/20211013080645.GD6010@kili
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Dennis Dalessandro <dennis.dalessandro@cornelisnetworks.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2021-10-13 13:59:47 -03:00
..
ah.c IB/rdmavt: Convert to SPDX identifier 2021-08-25 14:55:49 -03:00
ah.h IB/rdmavt: Convert to SPDX identifier 2021-08-25 14:55:49 -03:00
cq.c IB/rdmavt: Convert to SPDX identifier 2021-08-25 14:55:49 -03:00
cq.h IB/rdmavt: Convert to SPDX identifier 2021-08-25 14:55:49 -03:00
Kconfig RDMA/core: remove use of dma_virt_ops 2020-11-17 15:22:07 -04:00
mad.c IB/rdmavt: Convert to SPDX identifier 2021-08-25 14:55:49 -03:00
mad.h IB/rdmavt: Convert to SPDX identifier 2021-08-25 14:55:49 -03:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
mcast.c IB/rdmavt: Convert to SPDX identifier 2021-08-25 14:55:49 -03:00
mcast.h IB/rdmavt: Convert to SPDX identifier 2021-08-25 14:55:49 -03:00
mmap.c IB/rdmavt: Convert to SPDX identifier 2021-08-25 14:55:49 -03:00
mmap.h IB/rdmavt: Convert to SPDX identifier 2021-08-25 14:55:49 -03:00
mr.c Merge branch 'sg_nents' into rdma.git for-next 2021-08-30 09:49:59 -03:00
mr.h IB/rdmavt: Convert to SPDX identifier 2021-08-25 14:55:49 -03:00
pd.c IB/rdmavt: Convert to SPDX identifier 2021-08-25 14:55:49 -03:00
pd.h IB/rdmavt: Convert to SPDX identifier 2021-08-25 14:55:49 -03:00
qp.c RDMA/rdmavt: Fix error code in rvt_create_qp() 2021-10-13 13:59:47 -03:00
qp.h IB/rdmavt: Convert to SPDX identifier 2021-08-25 14:55:49 -03:00
rc.c IB/rdmavt: Convert to SPDX identifier 2021-08-25 14:55:49 -03:00
srq.c IB/rdmavt: Convert to SPDX identifier 2021-08-25 14:55:49 -03:00
srq.h IB/rdmavt: Convert to SPDX identifier 2021-08-25 14:55:49 -03:00
trace_cq.h IB/rdmavt: Convert to SPDX identifier 2021-08-25 14:55:49 -03:00
trace_mr.h IB/rdmavt: Convert to SPDX identifier 2021-08-25 14:55:49 -03:00
trace_qp.h IB/rdmavt: Convert to SPDX identifier 2021-08-25 14:55:49 -03:00
trace_rc.h IB/rdmavt: Convert to SPDX identifier 2021-08-25 14:55:49 -03:00
trace_rvt.h IB/rdmavt: Convert to SPDX identifier 2021-08-25 14:55:49 -03:00
trace_tx.h IB/rdmavt: Convert to SPDX identifier 2021-08-25 14:55:49 -03:00
trace.c IB/rdmavt: Convert to SPDX identifier 2021-08-25 14:55:49 -03:00
trace.h IB/rdmavt: Convert to SPDX identifier 2021-08-25 14:55:49 -03:00
vt.c IB/rdmavt: Convert to SPDX identifier 2021-08-25 14:55:49 -03:00
vt.h IB/rdmavt: Convert to SPDX identifier 2021-08-25 14:55:49 -03:00