u-boot/fs
Tuomas Tynkkynen af609e3764 fs/fat: Check malloc return values and fix memory leaks
Check malloc() return values and properly unwind on errors so
memory allocated for fat_itr structures get freed properly.

Also fixes a leak of fsdata.fatbuf in fat_size().

Fixes: 2460098cff ("fs/fat: Reduce stack usage")
Reported-by: Coverity (CID: 167225, 167233, 167234)
Signed-off-by: Tuomas Tynkkynen <tuomas.tynkkynen@iki.fi>
Reviewed-by: Tom Rini <trini@konsulko.com>
2017-10-08 16:19:56 -04:00
..
btrfs fs/btrfs: Fix warning in btrfs_check_super() 2017-10-03 08:44:13 -04:00
cbfs fs: Kconfig: Add a separate config for FS_CBFS 2017-04-30 13:40:57 -04:00
cramfs fs: Kconfig: Add a separate option for FS_CRAMFS 2017-04-30 13:40:59 -04:00
ext4 fs/ext4/ext4fs.c: Free dirnode in error path of ext4fs_ls 2017-10-06 11:28:22 -04:00
fat fs/fat: Check malloc return values and fix memory leaks 2017-10-08 16:19:56 -04:00
jffs2 treewide: replace with error() with pr_err() 2017-10-04 11:59:44 -04:00
reiserfs fs: Create a common fs_devread for ext4/reiserfs/zfs 2017-10-02 21:51:50 -04:00
sandbox sandboxfs: Fix resource leak 2016-12-02 10:37:47 -07:00
ubifs env: Rename common functions related to setenv() 2017-08-16 08:23:32 -04:00
yaffs2 treewide: replace with error() with pr_err() 2017-10-04 11:59:44 -04:00
zfs fs: Create a common fs_devread for ext4/reiserfs/zfs 2017-10-02 21:51:50 -04:00
fs.c fs: btrfs: Add U-Boot fs handlers. 2017-10-02 21:52:18 -04:00
fs_internal.c fs: Create a common fs_devread for ext4/reiserfs/zfs 2017-10-02 21:51:50 -04:00
Kconfig fs: btrfs: Add U-Boot fs handlers. 2017-10-02 21:52:18 -04:00
Makefile fs: btrfs: Add U-Boot fs handlers. 2017-10-02 21:52:18 -04:00