Re: [PATCH v2] RDMA/mlx5: Fix UMR XLT cleanup on ODP populate failure

From: Leon Romanovsky

Date: Mon May 11 2026 - 06:08:33 EST



On Sun, 26 Apr 2026 14:23:41 +0100, Prathamesh Deshpande wrote:
> mlx5r_umr_update_xlt() allocates and DMA maps an XLT buffer with
> mlx5r_umr_create_xlt(). The buffer is released by the common cleanup path
> through mlx5r_umr_unmap_free_xlt().
>
> After mlx5_odp_populate_xlt() became fallible, its error path returned
> directly and skipped that cleanup. This leaks the XLT DMA mapping and
> buffer. If the emergency XLT page was used, it also leaves
> xlt_emergency_page_mutex locked.
>
> [...]

Applied, thanks!

[1/1] RDMA/mlx5: Fix UMR XLT cleanup on ODP populate failure
https://git.kernel.org/rdma/rdma/c/40d05a2e003357

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