u-boot/fs/ext4
Heinrich Schuchardt 9084e1b1b9 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: 22fdac381f ("fs: ext4: implement opendir, readdir, closedir")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
2024-11-13 08:18:50 -06:00
..
dev.c Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
ext4_common.c fs: ext4: use fs_ls_generic 2024-11-01 13:37:58 -06:00
ext4_common.h ext4: Fix zalloc() 2024-08-15 16:14:36 -06:00
ext4_journal.c Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
ext4_journal.h ext4: add support for filesystems without JOURNAL 2019-07-18 11:31:24 -04:00
ext4_write.c ext4: Improve feature checking 2024-08-15 14:35:15 -06:00
ext4fs.c fs: ext4: correct error handling 2024-11-13 08:18:50 -06:00
Kconfig fs: Migrate ext4 to Kconfig 2018-01-22 16:43:30 -05:00
Makefile fs: ext4: Use CRC-16 implementation from linux/crc16.h 2022-04-21 14:32:40 -04:00