Re: [U-Boot] [PATCH] fs: fat: Fix possible double free of fatbuf

2019-05-29 Thread Tom Rini
On Thu, May 16, 2019 at 09:34:31AM -0500, Andrew F. Davis wrote: > 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 Applied to u-boot

[U-Boot] [PATCH] fs: fat: Fix possible double free of fatbuf

2019-05-16 Thread Andrew F. Davis
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 --- fs/fat/fat.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a