Commit c3db3c2f authored by Pavel Machek's avatar Pavel Machek Committed by Jaegeuk Kim
Browse files

f2fs: should put a page when checking the summary info



The commit introduces another bug.

Cc: stable@vger.kernel.org
Fixes: c6ad7fd1 ("f2fs: fix to do sanity check on summary info")
Signed-off-by: default avatarPavel Machek <pavel@denx.de>
Reviewed-by: default avatarChao Yu <chao@kernel.org>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent bbb8ceb5
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1110,6 +1110,7 @@ static bool is_alive(struct f2fs_sb_info *sbi, struct f2fs_summary *sum,
	if (ofs_in_node >= max_addrs) {
		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);
		f2fs_put_page(node_page, 1);
		return false;
	}