linux/drivers/infiniband/hw/hns
Colin Ian King 38759d6175 RDMA/hns: ensure for-loop actually iterates and free's buffers
The current for-loop zeros variable i and only loops once, hence
not all the buffers are free'd.  Fix this by setting i correctly.

Detected by CoverityScan, CID#1463415 ("Operands don't affect result")

Fixes: a5073d6054 ("RDMA/hns: Add eq support of hip08")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Yixian Liu <liuyixian@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
2018-03-27 15:06:34 -06:00
..
hns_roce_ah.c Merge branch 'for-next-early' into for-next 2017-10-18 13:07:13 -04:00
hns_roce_alloc.c RDMA/hns: Get rid of virt_to_page and vmap calls after dma_alloc_coherent 2017-12-01 12:21:27 -07:00
hns_roce_cmd.c RDMA/hns: Refactor eq code for hip06 2017-12-22 09:21:38 -07:00
hns_roce_cmd.h RDMA/hns: Add eq support of hip08 2017-12-22 09:21:45 -07:00
hns_roce_common.h RDMA/hns: Fix the endian problem for hns 2018-02-05 10:48:48 -05:00
hns_roce_cq.c RDMA/hns: Refactor eq code for hip06 2017-12-22 09:21:38 -07:00
hns_roce_device.h RDMA/hns: Fix the endian problem for hns 2018-02-05 10:48:48 -05:00
hns_roce_hem.c RDMA/hns: Get rid of page operation after dma_alloc_coherent 2017-12-01 12:21:27 -07:00
hns_roce_hem.h RDMA/hns: Get rid of page operation after dma_alloc_coherent 2017-12-01 12:21:27 -07:00
hns_roce_hw_v1.c RDMA/hns: Fix the endian problem for hns 2018-02-05 10:48:48 -05:00
hns_roce_hw_v1.h RDMA/hns: Fix the endian problem for hns 2018-02-05 10:48:48 -05:00
hns_roce_hw_v2.c RDMA/hns: ensure for-loop actually iterates and free's buffers 2018-03-27 15:06:34 -06:00
hns_roce_hw_v2.h RDMA/hns: Fix the endian problem for hns 2018-02-05 10:48:48 -05:00
hns_roce_main.c RDMA/hns: Fix the endian problem for hns 2018-02-05 10:48:48 -05:00
hns_roce_mr.c RDMA/hns: Add rereg mr support for hip08 2017-11-10 12:14:27 -05: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: Fix the endian problem for hns 2018-02-05 10:48:48 -05:00
Kconfig RDMA/hns: Initialize the PCI device for hip08 RoCE 2017-09-27 08:34:55 -04:00
Makefile RDMA/hns: Refactor eq code for hip06 2017-12-22 09:21:38 -07:00