IB/rxe: Fix incorrect cache cleanup in error flow
authorYuval Shaia <yuval.shaia@oracle.com>
Sun, 9 Dec 2018 13:53:49 +0000 (15:53 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 11 Dec 2018 19:26:35 +0000 (12:26 -0700)
commit6db21d8986e14e2e86573a3b055b05296188bd2c
tree312fa5eabe14d8f8225f4d5b6018e1266fdefded
parent0c1c3880442f07532780533457ba0784790d8de2
IB/rxe: Fix incorrect cache cleanup in error flow

Array iterator stays at the same slot, fix it.

Fixes: 8700e3e7c485 ("Soft RoCE driver")
Signed-off-by: Yuval Shaia <yuval.shaia@oracle.com>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Zhu Yanjun <yanjun.zhu@oracle.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/sw/rxe/rxe_pool.c