linux_dsm_epyc7002/drivers/infiniband/hw/hns
Colin Ian King 63ea641f49 RDMA/hns: return 0 rather than return a garbage status value
For the case where hr_qp->state == IB_QPS_RESET, an uninitialized
value in ret is being returned by function hns_roce_v2_query_qp.
Fix this by setting ret to 0 for this specific return condition.

Detected by CoverityScan, CID#1457203 ("Unitialized scalar variable")

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Wei Hu (Xavier) <xavier.huwei@huawei.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
2017-10-04 14:40:07 -04:00
..
hns_roce_ah.c RDMA/hns: Modify assignment device variable to support both PCI device and platform device 2017-09-27 08:34:55 -04:00
hns_roce_alloc.c RDMA/hns: Modify assignment device variable to support both PCI device and platform device 2017-09-27 08:34:55 -04:00
hns_roce_cmd.c RDMA/hns: Add mailbox's implementation for hip08 RoCE driver 2017-09-27 08:34:55 -04:00
hns_roce_cmd.h RDMA/hns: Add QP operations support for hip08 SoC 2017-09-27 08:34:56 -04:00
hns_roce_common.h RDMA/hns: Configure mac&gid and user access region for hip08 RoCE driver 2017-09-27 08:34:56 -04:00
hns_roce_cq.c RDMA/hns: Add support for processing send wr and receive wr 2017-09-27 08:34:56 -04:00
hns_roce_device.h RDMA/hns: Don't unregister a callback we didn't register 2017-09-29 12:16:49 -04:00
hns_roce_eq.c IB/hns: include linux/interrupt.h 2017-07-31 14:44:47 -04:00
hns_roce_eq.h IB/hns: Optimize code of aeq and ceq interrupt handle and fix the bug of qpn 2016-10-03 11:43:15 -04:00
hns_roce_hem.c RDMA/hns: make various function static, fixes warnings 2017-09-29 11:18:56 -04:00
hns_roce_hem.h RDMA/hns: Fix inconsistent warning 2017-09-27 08:34:56 -04:00
hns_roce_hw_v1.c RDMA/hns: Avoid NULL pointer exception 2017-09-29 12:10:09 -04:00
hns_roce_hw_v1.h RDMA/hns: Add mailbox's implementation for hip08 RoCE driver 2017-09-27 08:34:55 -04:00
hns_roce_hw_v2.c RDMA/hns: return 0 rather than return a garbage status value 2017-10-04 14:40:07 -04:00
hns_roce_hw_v2.h RDMA/hns: Configure the MTPT in hip08 2017-09-27 08:34:56 -04:00
hns_roce_main.c RDMA/hns: Don't unregister a callback we didn't register 2017-09-29 12:16:49 -04:00
hns_roce_mr.c RDMA/hns: remove redundant assignment to variable j 2017-09-29 11:18:56 -04:00
hns_roce_pd.c RDMA/hns: Configure mac&gid and user access region for hip08 RoCE driver 2017-09-27 08:34:56 -04:00
hns_roce_qp.c RDMA/hns: Add support for processing send wr and receive wr 2017-09-27 08:34:56 -04:00
Kconfig RDMA/hns: Initialize the PCI device for hip08 RoCE 2017-09-27 08:34:55 -04:00
Makefile RDMA/hns: Initialize the PCI device for hip08 RoCE 2017-09-27 08:34:55 -04:00