Re: RDMA/mlx5: Fix memory leak in GET_DATA_DIRECT_SYSFS_PATH handler

From: Markus Elfring

Date: Fri Feb 27 2026 - 02:35:32 EST



> > Add a kfree() call to the error path to ensure the allocated memory is
> > properly freed.

> Applied, thanks!
>
> [1/1] RDMA/mlx5: Fix memory leak in GET_DATA_DIRECT_SYSFS_PATH handler


https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?h=v7.0-rc1&id=9b9d253908478f504297ac283c514e5953ddafa6

I find that an other change description would fit better to the performed
source code adjustment.

Will further collateral evolution become more helpful accordingly?
https://elixir.bootlin.com/linux/v6.19.3/source/include/linux/cleanup.h#L157-L161

Regards,
Markus