Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0aed061b authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman
Browse files

ANDROID: Revert "f2fs: avoid out-of-range memory access"



This reverts commit e52e9e4c which is
commit 56f3ce675103e3fb9e631cfb4131fc768bc23e9a upstream.

This is being done because segment.c is a bit "different" in this
branch, and we should keep the f2fs fixes away from here for now.
Otherwise the build breaks.

Change-Id: I014e3381acb1112825f305d47bdf88848ee6fb7f
Cc: Ocean Chen <oceanchen@google.com>
Cc: Jaegeuk Kim <jaegeuk@google.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent fabc071c
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -3444,11 +3444,6 @@ static int read_compacted_summaries(struct f2fs_sb_info *sbi)
		seg_i = CURSEG_I(sbi, i);
		segno = le32_to_cpu(ckpt->cur_data_segno[i]);
		blk_off = le16_to_cpu(ckpt->cur_data_blkoff[i]);
		if (blk_off > ENTRIES_IN_SUM) {
			f2fs_bug_on(sbi, 1);
			f2fs_put_page(page, 1);
			return -EFAULT;
		}
		seg_i->next_segno = segno;
		reset_curseg(sbi, i, 0);
		seg_i->alloc_type = ckpt->alloc_type[i];