Re: [PATCH v2 3/5] net: marvell: prestera: fix memory use after free
From: Andrew Lunn
Date: Wed Mar 20 2024 - 20:14:38 EST
On Wed, Mar 20, 2024 at 07:20:06PM +0200, Elad Nachman wrote:
> From: Elad Nachman <enachman@xxxxxxxxxxx>
>
> Prestera driver routing module cleanup process would release memory,
> then reference it again and eventually free it again the second time.
>
> Remove the redundant first memory free call.
> All such double free calls were detected using KASAN.
>
> Fixes: 4394fbcb78cf ("net: marvell: prestera: handle fib notifications")
> Signed-off-by: Elad Nachman <enachman@xxxxxxxxxxx>
Reviewed-by: Andrew Lunn <andrew@xxxxxxx>
Andrew