rv1126-uboot/fs/fat
Tuomas Tynkkynen 635356e554 UPSTREAM: 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: 2460098cffacd1 ("fs/fat: Reduce stack usage")
Change-Id: If2abd822a136b40375f6b0052c88c0d9deb3a632
Reported-by: Coverity (CID: 167225, 167233, 167234)
Signed-off-by: Tuomas Tynkkynen <tuomas.tynkkynen@iki.fi>
Reviewed-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
(cherry picked from commit af609e3764ea3ed7c0ccad8e57f9d9671c81c3e8)
2018-01-17 15:27:28 +08:00
..
Kconfig fs: fat: add kbuild configuration support 2017-06-03 17:55:16 -04:00
Makefile UPSTREAM: fat/fs: remove a bunch of dead code 2018-01-16 18:16:48 +08:00
fat.c UPSTREAM: fs/fat: Check malloc return values and fix memory leaks 2018-01-17 15:27:28 +08:00
fat_write.c UPSTREAM: fs/fat: Clean up open-coded sector <-> cluster conversions 2018-01-16 18:16:48 +08:00