]> git.baikalelectronics.ru Git - uboot.git/commit
fs: ext4: Fix free(NULL)
authorMikhail Ilin <ilin.mikhail.ol@gmail.com>
Tue, 22 Nov 2022 08:00:55 +0000 (11:00 +0300)
committerTom Rini <trini@konsulko.com>
Thu, 8 Dec 2022 14:28:31 +0000 (09:28 -0500)
commitb187c94de9ba2d97d31380f9c90bbfc68f51addf
tree99cd69b9375cfe7bc35a06ed23c83102b8ff603d
parent9a0b40ff5aa798d200398bf0df78762aadbcd29b
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: 934b14f2bb30 ("ext4: free allocations by parse_path()")
Signed-off-by: Mikhail Ilin <ilin.mikhail.ol@gmail.com>
fs/ext4/ext4_common.c