diff options
author | Andrew Goodbody <andrew.goodbody@linaro.org> | 2025-10-02 11:36:09 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2025-10-10 14:27:49 -0600 |
commit | 87b7eaf3244e1a991404602c3422a4ce06bfae55 (patch) | |
tree | edd050a7de09664f8dcd97a28f97c8023278a3d9 /drivers/net/dwc_eth_qos_stm32.c | |
parent | 42b353412517ecfc9ba93dcd7f31e0e3557af413 (diff) |
fs/squashfs: Ensure memory is freed by using unwind goto
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@linaro.org>
Acked-by: Quentin Schulz <quentin.schulz@cherry.de>
Reviewed-by: Joao Marcos Costa <joaomarcos.costa@bootlin.com>
Diffstat (limited to 'drivers/net/dwc_eth_qos_stm32.c')
0 files changed, 0 insertions, 0 deletions