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
hns_roce_alloc.c
hns_roce_cmd.c
hns_roce_cmd.h
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
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
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
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
hns_roce_srq.c
Kconfig
Makefile