[PATCH] fs/squashfs: Ensure memory is freed by using unwind goto

Quentin Schulz quentin.schulz at cherry.de
Mon Oct 6 16:32:38 CEST 2025


Hi Andrew,

On 10/2/25 12:36 PM, Andrew Goodbody wrote:
> Returning immediately from sqfs_read_nest is not consistent with other
> error checks in this function and can lead to memory leaks. Instead use
> the unwind goto used elsewhere to ensure that the memory is freed.
> 
> This issue was found by Smatch.
> 
> Signed-off-by: Andrew Goodbody <andrew.goodbody at linaro.org>

Acked-by: Quentin Schulz <quentin.schulz at cherry.de>

Thanks!
Quentin


More information about the U-Boot mailing list