mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 18:39:59 +00:00
f2fs: should put a page when checking the summary info
The commit introduces another bug.
Cc: stable@vger.kernel.org
Fixes: c6ad7fd166
("f2fs: fix to do sanity check on summary info")
Signed-off-by: Pavel Machek <pavel@denx.de>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
bbb8ceb5e2
commit
c3db3c2fd9
1 changed files with 1 additions and 0 deletions
|
@ -1110,6 +1110,7 @@ static bool is_alive(struct f2fs_sb_info *sbi, struct f2fs_summary *sum,
|
||||||
if (ofs_in_node >= max_addrs) {
|
if (ofs_in_node >= max_addrs) {
|
||||||
f2fs_err(sbi, "Inconsistent ofs_in_node:%u in summary, ino:%u, nid:%u, max:%u",
|
f2fs_err(sbi, "Inconsistent ofs_in_node:%u in summary, ino:%u, nid:%u, max:%u",
|
||||||
ofs_in_node, dni->ino, dni->nid, max_addrs);
|
ofs_in_node, dni->ino, dni->nid, max_addrs);
|
||||||
|
f2fs_put_page(node_page, 1);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue