[PATCH] net: microchip: vcap api: Fix memory leaks in vcap_api_encode_rule_test()

Jens Emil Schulz Østergaard jensemil.schulzostergaard at microchip.com
Fri Oct 11 08:28:25 PDT 2024


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 at vger.kernel.org
> Fixes: a3c1e45156ad ("net: microchip: vcap: Fix use-after-free error in kunit test")
> Signed-off-by: Jinjie Ruan <ruanjinjie at huawei.com>

Reviewed-by: Jens Emil Schulz Østergaard <jensemil.schulzostergaard at microchip.com>




More information about the linux-arm-kernel mailing list