[PATCH] fs/squashfs: Ensure memory is freed by using unwind goto
Tom Rini
trini at konsulko.com
Sat Oct 11 19:07:27 CEST 2025
On Thu, 02 Oct 2025 11:36:09 +0100, 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.
>
>
> [...]
Applied to u-boot/master, thanks!
[1/1] fs/squashfs: Ensure memory is freed by using unwind goto
commit: 87b7eaf3244e1a991404602c3422a4ce06bfae55
--
Tom
More information about the U-Boot
mailing list