Searched hist:"635356 e554fed8d51aef5fcdabdf332cb7f681de" (Results 1 – 1 of 1) sorted by relevance
| /rk3399_rockchip-uboot/fs/fat/ |
| H A D | fat.c | 635356e554fed8d51aef5fcdabdf332cb7f681de Sat Sep 30 23:25:22 UTC 2017 Tuomas Tynkkynen <tuomas.tynkkynen@iki.fi> 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)
|