Re: [PATCH] RDMA/mlx5: Return ENOMEM when allocating a MEMIC operation fails

From: Leon Romanovsky

Date: Mon Nov 16 2026 - 06:29:59 EST



On Thu, 12 Nov 2026 10:31:08 +0800, Zhu Jun wrote:
> When a MEMIC operation is not already mapped, map_existing_op() leaves
> err set to -ENOENT. If allocating the new operation entry then fails, the
> handler returns that stale lookup error instead of -ENOMEM.
>
> Set err to -ENOMEM before allocating the operation entry.
>
> OpenAI Codex assisted with analysis and patch preparation.
>
> [...]

Applied, thanks!

[1/1] RDMA/mlx5: Return ENOMEM when allocating a MEMIC operation fails
https://git.kernel.org/rdma/rdma/c/94d14d008d5570

Best regards,
--
Leon Romanovsky <leon@xxxxxxxxxx>