commit | d0cd30eb8137c0f14034aeb22c9f00cd70ccc98c | [log] [tgz] |
---|---|---|
author | Andrew F. Davis <afd@ti.com> | Thu May 16 09:34:31 2019 -0500 |
committer | Tom Rini <trini@konsulko.com> | Tue May 28 13:57:52 2019 -0400 |
tree | 578f8d0eb912a6adc8b64b92640c60853c384738 | |
parent | 7b437807ee0a051f46d329e868e0295299026b75 [diff] |
fs: fat: Fix possible double free of fatbuf fat_itr_root() allocates fatbuf so we free it on the exit path, if the function fails we should not free it, check the return value and skip freeing if the function fails. Signed-off-by: Andrew F. Davis <afd@ti.com>