]> git.sur5r.net Git - u-boot/commit
ext4: propagate error if creation of directory entry fails
authorStefan Brüns <stefan.bruens@rwth-aachen.de>
Tue, 6 Sep 2016 02:36:42 +0000 (04:36 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 23 Sep 2016 13:02:35 +0000 (09:02 -0400)
commita0d767e2c1e40e781fdaa592f06f92614b4e5cdf
tree17aacbdac487f13d52ba2cc182df55fef108e1d5
parent76a29519ff87dd6a014d841a3a6e501d3b2f5153
ext4: propagate error if creation of directory entry fails

In case the dir entry creation failed, ext4fs_write would later overwrite
a random inode, as inodeno was never initialized.

Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>
Reviewed-by: Lukasz Majewski <l.majewski@samsung.com>
fs/ext4/ext4_common.c
fs/ext4/ext4_common.h
fs/ext4/ext4_write.c