]> Git Repo - J-u-boot.git/commit
fs: ext4: correct error handling
authorHeinrich Schuchardt <[email protected]>
Thu, 7 Nov 2024 09:38:53 +0000 (10:38 +0100)
committerTom Rini <[email protected]>
Wed, 13 Nov 2024 14:18:50 +0000 (08:18 -0600)
commit9084e1b1b94c31d76ae7efd12f8828f3b4ed2255
tree5843b1e1160c03dba717037008d820b4af8b4c6e
parentbbc3d12516ec759379d71819ff49b8574f233aec
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 <[email protected]>
Fixes: 22fdac381f98 ("fs: ext4: implement opendir, readdir, closedir")
Signed-off-by: Heinrich Schuchardt <[email protected]>
Reviewed-by: Ilias Apalodimas <[email protected]>
fs/ext4/ext4fs.c
This page took 0.031715 seconds and 4 git commands to generate.