Commit 5c719d7a authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Leon Romanovsky

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: 02ed2537 ("RDMA/rxe: Introduce rxe access supported flags")
Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/43698d8a3ed4e720899eadac887427f73d7ec2eb.1689623735.git.christophe.jaillet@wanadoo.frReviewed-by: default avatarBob Pearson <rpearsonhpe@gmail.com>
Acked-by: default avatarZhu Yanjun <zyjzyj2000@gmail.com>
Signed-off-by: default avatarLeon Romanovsky <leon@kernel.org>
parent 29900bf3
......@@ -199,7 +199,8 @@ int rxe_bind_mw(struct rxe_qp *qp, struct rxe_send_wqe *wqe)
if (access & ~RXE_ACCESS_SUPPORTED_MW) {
rxe_err_mw(mw, "access %#x not supported", access);
return -EOPNOTSUPP;
ret = -EOPNOTSUPP;
goto err_drop_mr;
}
spin_lock_bh(&mw->lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment