Re: [PATCH net] octeontx2-af: fix the double free in rvu_npc_freemem()

From: Markus Elfring
Date: Wed Apr 24 2024 - 03:57:17 EST



> npc_mcam_rsrcs_deinit() has released 'mcam->counters.bmap'. Deleted this
> redundant kfree() to fix this double free problem.


Can a wording variant (like the following) be a bit nicer?

The object “mcam->counters.bmap” was released during the execution of
the function “npc_mcam_rsrcs_deinit”.
Delete a subsequent kfree() call to fix this double free problem.


Regards,
Markus