Skip to content

Commit 86ab053

Browse files
ddmatsurleon
authored andcommitted
RDMA/rxe: Fix incorrect return value of rxe_odp_atomic_op()
rxe_mr_do_atomic_op() returns enum resp_states numbers, so the ODP counterpart must not return raw errno codes. Signed-off-by: Daisuke Matsuda <matsuda-daisuke@fujitsu.com> Reviewed-by: Zhu Yanjun <yanjun.zhu@linux.dev> Link: https://patch.msgid.link/20250313064540.2619115-1-matsuda-daisuke@fujitsu.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
1 parent 81f8f74 commit 86ab053

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/infiniband/sw/rxe/rxe_odp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ int rxe_odp_atomic_op(struct rxe_mr *mr, u64 iova, int opcode,
316316
err = rxe_odp_map_range_and_lock(mr, iova, sizeof(char),
317317
RXE_PAGEFAULT_DEFAULT);
318318
if (err < 0)
319-
return err;
319+
return RESPST_ERR_RKEY_VIOLATION;
320320

321321
err = rxe_odp_do_atomic_op(mr, iova, opcode, compare, swap_add,
322322
orig_val);

0 commit comments

Comments
 (0)