linux-brain/drivers/infiniband/hw/cxgb4
Jiapeng Chong 57ef44f357 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 08:53:09 +02:00
..
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
cm.c RDMA/cxgb4: check for ipv6 address properly while destroying listener 2021-04-14 08:24:17 +02:00
cq.c RDMA/cxgb4: Validate the number of CQEs 2020-12-30 11:51:11 +01:00
device.c RDMA/iw_cxgb4: cleanup device debugfs entries on ULD remove 2020-06-24 17:50:33 +02:00
ev.c cxgb4: Convert qpidr to XArray 2019-03-25 15:39:18 -03:00
id_table.c treewide: kmalloc() -> kmalloc_array() 2018-06-12 16:19:22 -07:00
iw_cxgb4.h RDMA: Convert CQ allocations to be under core responsibility 2019-06-11 16:39:49 -04:00
mem.c IB/uverbs: Set IOVA on IB MR in uverbs layer 2020-08-21 13:05:31 +02:00
provider.c RDMA/{cxgb3, cxgb4, i40iw}: Remove common code 2019-08-12 10:19:43 -04:00
qp.c RDMA/cxgb4: Fix missing error code in create_qp() 2021-07-19 08:53:09 +02:00
resource.c RDMA/cxgb4: add missing qpid increment 2021-05-14 09:44:30 +02:00
restrack.c netlink: make nla_nest_start() add NLA_F_NESTED flag 2019-04-27 17:03:44 -04:00
t4.h iw_cxgb4: complete the cached SRQ buffers 2019-02-08 17:02:05 -07:00
t4fw_ri_api.h iw_cxgb4: Support FW write completion WR 2018-08-02 20:16:02 -06:00