linux_dsm_epyc7002/drivers/infiniband/hw
Jiapeng Chong 313d9f2580 RDMA/cxgb4: Fix missing error code in create_qp()
[ Upstream commit aeb27bb76ad8197eb47890b1ff470d5faf8ec9a5 ]

The error code is missing in this code scenario so 0 will be returned. Add
the error code '-EINVAL' to the return value 'ret'.

Eliminates the follow smatch warning:

drivers/infiniband/hw/cxgb4/qp.c:298 create_qp() warn: missing error code 'ret'.

Link: https://lore.kernel.org/r/1622545669-20625-1-git-send-email-jiapeng.chong@linux.alibaba.com
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-07-19 09:44:45 +02:00
..
bnxt_re RDMA/bnxt_re: Fix a double free in bnxt_qplib_alloc_res 2021-05-14 09:50:44 +02:00
cxgb4 RDMA/cxgb4: Fix missing error code in create_qp() 2021-07-19 09:44:45 +02:00
efa RDMA/efa: Use the correct current and new states in modify QP 2020-12-01 20:53:48 -04:00
hfi1 IB/hfi1: Correct oversized ring allocation 2021-05-19 10:12:55 +02:00
hns RDMA/hns: Fixes missing error code of CMDQ 2021-03-04 11:38:08 +01:00
i40iw RDMA/i40iw: Fix error unwinding when i40iw_hmc_sd_one fails 2021-05-14 09:50:40 +02:00
mlx4 RDMA/core: Sanitize WQ state received from the userspace 2021-07-14 16:56:19 +02:00
mlx5 RDMA/mlx5: Don't access NULL-cleared mpi pointer 2021-07-14 16:56:32 +02:00
mthca RDMa/mthca: Work around -Wenum-conversion warning 2020-12-30 11:53:08 +01:00
ocrdma RDMA/ocrdma: Fix use after free in ocrdma_dealloc_ucontext_pd() 2021-01-19 18:27:21 +01:00
qedr RDMA/qedr: Fix error return code in qedr_iw_connect() 2021-05-14 09:50:35 +02:00
qib Merge branch 'mlx5_active_speed' into rdma.git for-next 2020-09-18 10:31:45 -03:00
usnic RDMA/usnic: Fix memleak in find_free_vf_and_create_qp_grp 2021-01-19 18:27:31 +01:00
vmw_pvrdma RDMA/vmw_pvrdma: Fix network_hdr_type reported in WC 2021-01-30 13:55:18 +01:00
Makefile RDMA/iw_cxgb3: Remove the iw_cxgb3 module from kernel 2019-10-04 15:08:59 -03:00