diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-04-12 10:23:18 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2013-04-22 08:56:03 +0900 |
commit | 66348b723bcbf57c2d2630a0c83b77c136e61029 (patch) | |
tree | a0e1df01ac565510d1cdd2be4c9ee272b70a7263 /fs/f2fs | |
parent | 6224da875ee0cb702c6ffe3456307701106dffb5 (diff) |
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 <yongjun_wei@trendmicro.com.cn>
Acked-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs/f2fs')
-rw-r--r-- | fs/f2fs/super.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 2643c49c38a..541f21ffd8f 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)); |