summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorTuomas Tynkkynen <tuomas.tynkkynen@iki.fi>2017-10-01 02:25:22 +0300
committerTom Rini <trini@konsulko.com>2017-10-08 16:19:56 -0400
commitaf609e3764ea3ed7c0ccad8e57f9d9671c81c3e8 (patch)
treea680cc06ac395af2a49a48b5d5107e5de4b084e7 /net
parent09fa964bba80c45432660f0e64362181900a5aef (diff)
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") Reported-by: Coverity (CID: 167225, 167233, 167234) Signed-off-by: Tuomas Tynkkynen <tuomas.tynkkynen@iki.fi> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions