From: Wei Yongjun Date: Fri, 12 Apr 2013 02:23:18 +0000 (+0800) Subject: f2fs: fix error return code in f2fs_fill_super() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=66348b723bcbf57c2d2630a0c83b77c136e61029;p=linux-beck.git f2fs: fix error return code in f2fs_fill_super() Fix to return a negative error code from the error handling case instead of 0, as returned elsewhere in this function. Introduce by commit c0d39e(f2fs: fix return values from validate superblock) Signed-off-by: Wei Yongjun Acked-by: Namjae Jeon Signed-off-by: Jaegeuk Kim --- diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 2643c49c38a5..541f21ffd8f2 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -534,7 +534,8 @@ static int f2fs_fill_super(struct super_block *sb, void *data, int silent) set_opt(sbi, POSIX_ACL); #endif /* parse mount options */ - if (parse_options(sb, sbi, (char *)data)) + err = parse_options(sb, sbi, (char *)data); + if (err) goto free_sb_buf; sb->s_maxbytes = max_file_size(le32_to_cpu(raw_super->log_blocksize));