commit | f32a6f2eaf5bdd373c6847b38cc711836b4b1127 | [log] [tgz] |
---|---|---|
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | Thu Nov 07 10:38:53 2024 +0100 |
committer | Tom Rini <trini@konsulko.com> | Wed Nov 13 08:18:50 2024 -0600 |
tree | 5843b1e1160c03dba717037008d820b4af8b4c6e | |
parent | 352114584ba314df71ac4513028e78472e9b63a2 [diff] |
fs: ext4: correct error handling After calling strdup() check the returned pointer. Avoid a memory leak if the directory is not found. Reported-by: Michael Nazzareno Trimarchi <michael@amarulasolutions.com> Fixes: 22fdac381f98 ("fs: ext4: implement opendir, readdir, closedir") Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>