u-boot/fs/fat
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
..
fat.c fs/fat: Check malloc return values and fix memory leaks 2017-10-08 16:19:56 -04:00
fat_write.c fs/fat: Clean up open-coded sector <-> cluster conversions 2017-09-15 09:03:15 -04:00
Kconfig fs: fat: add kbuild configuration support 2017-06-03 17:55:16 -04:00
Makefile fat/fs: remove a bunch of dead code 2017-09-15 09:03:12 -04:00