fs: ext4fs: Use unwind goto to free memory on error
authorAndrew Goodbody <andrew.goodbody@linaro.org>
Fri, 4 Jul 2025 12:32:43 +0000 (13:32 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 11 Jul 2025 16:44:29 +0000 (10:44 -0600)
commit36f05e622446046a93ff3a2c6958b65b85c6bffd
tree2692a36944c9482627252cae28bcbd7e27c96075
parenta7e44898b4d2484a9fd3226f44bc9b51d174f1e3
fs: ext4fs: Use unwind goto to free memory on error

Ensure that allocated memory is freed on error exit replace the direct
return calls with 'goto fail'.

This issue found by Smatch.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
fs/ext4/ext4_write.c