]> git.dujemihanovic.xyz Git - u-boot.git/commit
ext4: fix leak in check_filename()
authorStephen Warren <swarren@nvidia.com>
Sat, 5 Sep 2015 04:03:45 +0000 (22:03 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 11 Sep 2015 21:15:23 +0000 (17:15 -0400)
commitd56b2015e6d5695d009d8e5e3930cbf34c3b5da0
tree1f0bd35221f5d2c16165f2d36e9d9f0ea706abdf
parent934b14f2bb306dfa1947d30f4df90cdc8b710332
ext4: fix leak in check_filename()

root_first_block_buffer should be free()d in all cases, not just when an
error occurs. Fix the success exit path of the function to do this.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Lukasz Majewski <l.majewski@samsung.com>
Tested-by: Lukasz Majewski <l.majewski@samsung.com>
fs/ext4/ext4_common.c