commit | 30d41e18c3a6eac39b7348ae7e3388f0ec7e680e | [log] [tgz] |
---|---|---|
author | Weihang Li <liweihang@huawei.com> | Fri Mar 20 11:23:34 2020 +0800 |
committer | Jason Gunthorpe <jgg@mellanox.com> | Thu Mar 26 16:52:27 2020 -0300 |
tree | 2db98f7efb981e8d64266ebe31e2c532fb91e2ca | |
parent | ae1c61489c7fa02f32cc45464dfb5612fa812b32 [diff] |
RDMA/hns: Fix a wrong judgment of return value hns_roce_alloc_mtt_range() never return -1, ret should be checked whether it is zero instead of -1. Fixes: 1ceb0b11a8a2 ("RDMA/hns: Fix non-standard error codes") Link: https://lore.kernel.org/r/1584674622-52773-3-git-send-email-liweihang@huawei.com Signed-off-by: Weihang Li <liweihang@huawei.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>