diff options
author | Mohamad Heib <mohamadh@mellanox.com> | 2019-10-02 14:21:27 +0200 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2019-10-04 20:50:27 +0200 |
commit | 1cbe866cbcb53338de33cf67262e73f9315a9725 (patch) | |
tree | 09bc96faee47145f4e01efc829ba4d690b259846 /drivers/gpu | |
parent | RDMA/nldev: Reshuffle the code to avoid need to rebind QP in error path (diff) | |
download | linux-1cbe866cbcb53338de33cf67262e73f9315a9725.tar.xz linux-1cbe866cbcb53338de33cf67262e73f9315a9725.zip |
IB/core: Fix wrong iterating on ports
rdma_for_each_port is already incrementing the iterator's value it
receives therefore, after the first iteration the iterator is increased by
2 which eventually causing wrong queries and possible traces.
Fix the above by removing the old redundant incrementation that was used
before rdma_for_each_port() macro.
Cc: <stable@vger.kernel.org>
Fixes: ea1075edcbab ("RDMA: Add and use rdma_for_each_port")
Link: https://lore.kernel.org/r/20191002122127.17571-1-leon@kernel.org
Signed-off-by: Mohamad Heib <mohamadh@mellanox.com>
Reviewed-by: Erez Alfasi <ereza@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/gpu')
0 files changed, 0 insertions, 0 deletions