Re: [PATCH] net: microchip: vcap api: Fix memory leaks in vcap_api_encode_rule_test()
From: Jens Emil Schulz Østergaard
Date: Fri Oct 11 2024 - 11:29:17 EST
On Thu Oct 10, 2024 at 3:02 PM CEST, Jinjie Ruan wrote:
> Commit a3c1e45156ad ("net: microchip: vcap: Fix use-after-free error in
> kunit test") fixed the use-after-free error, but introduced below
> memory leaks by removing necessary vcap_free_rule(), add it to fix it.
Thank you for the fix. I reproduced the bug and confirmed the fix.
...
> Cc: stable@xxxxxxxxxxxxxxx
> Fixes: a3c1e45156ad ("net: microchip: vcap: Fix use-after-free error in kunit test")
> Signed-off-by: Jinjie Ruan <ruanjinjie@xxxxxxxxxx>
Reviewed-by: Jens Emil Schulz Østergaard <jensemil.schulzostergaard@xxxxxxxxxxxxx>