diff options
author | Stefan Brüns <stefan.bruens@rwth-aachen.de> | 2016-09-06 04:36:42 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-09-23 09:02:35 -0400 |
commit | a0d767e2c1e40e781fdaa592f06f92614b4e5cdf (patch) | |
tree | 17aacbdac487f13d52ba2cc182df55fef108e1d5 /fs/ext4/ext4_common.h | |
parent | 76a29519ff87dd6a014d841a3a6e501d3b2f5153 (diff) | |
download | u-boot-a0d767e2c1e40e781fdaa592f06f92614b4e5cdf.zip u-boot-a0d767e2c1e40e781fdaa592f06f92614b4e5cdf.tar.gz u-boot-a0d767e2c1e40e781fdaa592f06f92614b4e5cdf.tar.bz2 |
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>
Diffstat (limited to 'fs/ext4/ext4_common.h')
-rw-r--r-- | fs/ext4/ext4_common.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/ext4_common.h b/fs/ext4/ext4_common.h index 370a717..cc9d0c5 100644 --- a/fs/ext4/ext4_common.h +++ b/fs/ext4/ext4_common.h @@ -61,7 +61,7 @@ int ext4fs_iterate_dir(struct ext2fs_node *dir, char *name, uint32_t ext4fs_div_roundup(uint32_t size, uint32_t n); uint16_t ext4fs_checksum_update(unsigned int i); int ext4fs_get_parent_inode_num(const char *dirname, char *dname, int flags); -void ext4fs_update_parent_dentry(char *filename, int *p_ino, int file_type); +int ext4fs_update_parent_dentry(char *filename, int file_type); uint32_t ext4fs_get_new_blk_no(void); int ext4fs_get_new_inode_no(void); void ext4fs_reset_block_bmap(long int blockno, unsigned char *buffer, |