commit | 38759d6175d338fbf9282c8ea2b51f3b7ab9bc98 | [log] [tgz] |
---|---|---|
author | Colin Ian King <colin.king@canonical.com> | Mon Mar 26 16:10:18 2018 +0100 |
committer | Jason Gunthorpe <jgg@mellanox.com> | Tue Mar 27 15:06:34 2018 -0600 |
tree | a10f907656d5df8f4fb922e1a53b6e0888b47a95 | |
parent | c8d3bcbfc5eab3f01cf373d039af725f3b488813 [diff] |
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: a5073d6054f7 ("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>