Re: [PATCH] fwctl: mlx5: fix memory alloc/free in mlx5ctl_fw_rpc()
From: Akhilesh Patil
Date: Sat Aug 16 2025 - 00:43:52 EST
On Fri, Aug 15, 2025 at 04:40:10PM +0200, Markus Elfring wrote:
> > Use kvfree() to free memory allocated by kvzalloc() instead of kfree().
> > Avoid potential memory management issue by matching alloc/free routines.
>
> Will another bit of background information become helpful
> for an improved change description?
>
> Test command example:
> Markus_Elfring@Sonne:…/Projekte/Linux/next-analyses> /usr/bin/spatch -D report scripts/coccinelle/api/kfree_mismatch.cocci drivers/fwctl/mlx5/main.c
Sure, I will update the commit message to add this and push v2.
Thanks Markus for the suggestion.
Regards,
Akhilesh
> …
>
> Regards,
> Markus