Skip to content

Commit ad692bf

Browse files
Darrick J. Wongjankara
authored andcommitted
ext3: Return error code from generic_check_addressable
ext3_fill_super should return the error code that generic_check_accessible returns when an error condition occurs. Signed-off-by: Darrick J. Wong <djwong@us.ibm.com> Signed-off-by: Jan Kara <jack@suse.cz>
1 parent fbcae8e commit ad692bf

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎fs/ext3/super.c‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1859,13 +1859,15 @@ static int ext3_fill_super (struct super_block *sb, void *data, int silent)
18591859
goto failed_mount;
18601860
}
18611861

1862-
if (generic_check_addressable(sb->s_blocksize_bits,
1863-
le32_to_cpu(es->s_blocks_count))) {
1862+
err = generic_check_addressable(sb->s_blocksize_bits,
1863+
le32_to_cpu(es->s_blocks_count));
1864+
if (err) {
18641865
ext3_msg(sb, KERN_ERR,
18651866
"error: filesystem is too large to mount safely");
18661867
if (sizeof(sector_t) < 8)
18671868
ext3_msg(sb, KERN_ERR,
18681869
"error: CONFIG_LBDAF not enabled");
1870+
ret = err;
18691871
goto failed_mount;
18701872
}
18711873

0 commit comments

Comments
 (0)