Skip to content
Commit 04e6332e authored by Mikhail Ilin's avatar Mikhail Ilin Committed by Tom Rini
Browse files

fs: ext4: Fix free(NULL)



The 'depth_dirname', 'ptr', 'parent_inode' and 'first_inode' pointers
may be null. Thus, it is necessary to check them before using free() to
avoid free(NULL) cases.

Fixes: 934b14f2 ("ext4: free allocations by parse_path()")
Signed-off-by: default avatarMikhail Ilin <ilin.mikhail.ol@gmail.com>
parent 2d1b2ac1
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