projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4cac90d
)
f2fs: fix error path of fill_super
author
Chao Yu
<yuchao0@huawei.com>
Mon, 11 Jun 2018 10:02:02 +0000
(18:02 +0800)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Fri, 27 Jul 2018 09:03:59 +0000
(18:03 +0900)
In fill_super, if root inode's attribute is incorrect, we need to
call f2fs_destroy_stats to release stats memory.
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/super.c
patch
|
blob
|
history
diff --git
a/fs/f2fs/super.c
b/fs/f2fs/super.c
index 89a347243e9aaa13578df1b0d1e475953f681a86..01d1cb6081fca9d5d0f5b55c3cecfc487438fec3 100644
(file)
--- a/
fs/f2fs/super.c
+++ b/
fs/f2fs/super.c
@@
-2911,7
+2911,7
@@
try_onemore:
if (!S_ISDIR(root->i_mode) || !root->i_blocks || !root->i_size) {
iput(root);
err = -EINVAL;
- goto free_
node_inode
;
+ goto free_
stats
;
}
sb->s_root = d_make_root(root); /* allocate root dentry */