RDMA/rxe: Fix an error handling path in rxe_bind_mw()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Mon, 17 Jul 2023 19:55:56 +0000 (21:55 +0200)
committerLeon Romanovsky <leon@kernel.org>
Tue, 18 Jul 2023 12:22:43 +0000 (15:22 +0300)
commit5c719d7aef298e9b727f39b45e88528a96df3620
tree9a0840fef280fbc9b4f145488a9acdd604bb2fde
parent29900bf351e1a7e4643da5c3c3cd9df75c577b88
RDMA/rxe: Fix an error handling path in rxe_bind_mw()

All errors go to the error handling path, except this one. Be consistent
and also branch to it.

Fixes: 02ed253770fb ("RDMA/rxe: Introduce rxe access supported flags")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/43698d8a3ed4e720899eadac887427f73d7ec2eb.1689623735.git.christophe.jaillet@wanadoo.fr
Reviewed-by: Bob Pearson <rpearsonhpe@gmail.com>
Acked-by: Zhu Yanjun <zyjzyj2000@gmail.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/sw/rxe/rxe_mw.c