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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Jan 2020 13:50:04 +0000 (14:50 +0100)
commit20d1be36cdef3d1ca9b074da7bc1e4d49b32463f
treec1be262959676d8e2005cee0ec9041016cc46061
parent60049737d61125c390c26b1007822809520ebc8c
IB/rxe: Fix incorrect cache cleanup in error flow

[ Upstream commit 6db21d8986e14e2e86573a3b055b05296188bd2c ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/sw/rxe/rxe_pool.c