Skip to content

Commit 5c719d7

Browse files
tititiou36rleon
authored andcommitted
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: 02ed253 ("RDMA/rxe: Introduce rxe access supported flags") Signed-off-by: Christophe JAILLET <[email protected]> Link: https://lore.kernel.org/r/43698d8a3ed4e720899eadac887427f73d7ec2eb.1689623735.git.christophe.jaillet@wanadoo.fr Reviewed-by: Bob Pearson <[email protected]> Acked-by: Zhu Yanjun <[email protected]> Signed-off-by: Leon Romanovsky <[email protected]>
1 parent 29900bf commit 5c719d7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/infiniband/sw/rxe/rxe_mw.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,8 @@ int rxe_bind_mw(struct rxe_qp *qp, struct rxe_send_wqe *wqe)
199199

200200
if (access & ~RXE_ACCESS_SUPPORTED_MW) {
201201
rxe_err_mw(mw, "access %#x not supported", access);
202-
return -EOPNOTSUPP;
202+
ret = -EOPNOTSUPP;
203+
goto err_drop_mr;
203204
}
204205

205206
spin_lock_bh(&mw->lock);

0 commit comments

Comments
 (0)