commit | 8a6c612c8f28390f657ab54d9a4b26ec205fba93 | [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 | 58587213680a50234f8d1a28b8eeda00b7b78bd4 [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>