linux_dsm_epyc7002/drivers/infiniband/hw/hns
Gustavo A. R. Silva d35dc58dd2 RDMA/hns: Fix uninitialized variable bug
There is a potential execution path in which variable *ret* is returned
without being properly initialized, previously.

Fix this by initializing variable *ret* to 0.

Link: https://lore.kernel.org/r/20200328023539.GA32016@embeddedor
Addresses-Coverity-ID: 1491917 ("Uninitialized scalar variable")
Fixes: 2f49de21f3 ("RDMA/hns: Optimize mhop get flow for multi-hop addressing")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Acked-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
2020-03-29 11:09:55 -03:00
..
hns_roce_ah.c RDMA/hns: Modify variable/field name from vlan to vlan_id 2019-10-21 15:29:38 -04:00
hns_roce_alloc.c RDMA/hns: Fix non-standard error codes 2019-11-08 16:37:54 -04:00
hns_roce_cmd.c RDMA/hns: Optimize cmd init and mode selection for hip08 2019-09-16 10:52:20 -03:00
hns_roce_cmd.h RDMA/hns: Rename the functions used inside creating cq 2019-11-25 10:31:48 -04:00
hns_roce_common.h
hns_roce_cq.c RDMA/hns: Fix wrong judgments of udata->outlen 2020-03-13 11:36:58 -03:00
hns_roce_db.c IB: Allow calls to ib_umem_get from kernel ULPs 2020-01-16 16:14:28 +02:00
hns_roce_device.h RDMA/hns: Optimize base address table config flow for qp buffer 2020-03-18 10:23:12 -03:00
hns_roce_hem.c RDMA/hns: Fix uninitialized variable bug 2020-03-29 11:09:55 -03:00
hns_roce_hem.h RDMA/hns: Correct the value of HNS_ROCE_HEM_CHUNK_LEN 2019-11-06 13:37:02 -04:00
hns_roce_hw_v1.c RDMA/hns: Remove meaningless prints 2020-03-26 16:52:28 -03:00
hns_roce_hw_v1.h
hns_roce_hw_v2_dfx.c
hns_roce_hw_v2.c RDMA/hns: Reduce PFC frames in congestion scenarios 2020-03-29 11:04:21 -03:00
hns_roce_hw_v2.h RDMA/hns: Modify the mask of QP number for CQE of hip08 2020-03-29 11:04:21 -03:00
hns_roce_main.c RDMA/hns: Remove some redundant variables related to capabilities 2020-01-15 14:11:34 -04:00
hns_roce_mr.c RDMA/hns: Fix a wrong judgment of return value 2020-03-26 16:52:27 -03:00
hns_roce_pd.c RDMA/hns: Unify format of prints 2020-03-26 16:52:26 -03:00
hns_roce_qp.c RDMA/hns: Check if depth of qp is 0 before configure 2020-03-18 19:30:36 -03:00
hns_roce_restrack.c RDMA/hns: Fix memory leak on 'context' on error return path 2019-10-28 13:41:23 -03:00
hns_roce_srq.c RDMA/hns: Cleanups of magic numbers 2020-02-11 14:10:20 -04:00
Kconfig RDMA/hns: Fix build error again 2019-10-29 16:16:54 -03:00
Makefile RDMA/hns: Fix build error again 2019-10-29 16:16:54 -03:00