Skip to content
Commit d0cd30eb authored by Andrew F. Davis's avatar Andrew F. Davis Committed by Tom Rini
Browse files

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: default avatarAndrew F. Davis <afd@ti.com>
parent 7b437807
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment