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

Commit 7147144b authored by Dylan Chang's avatar Dylan Chang Committed by Paul Lawrence
Browse files

ANDROID: dm-bow: Fix free_show value is incorrect



Fix free_show value is incorrect

Change-Id: If7f36a64afa600c980ee8a25393f8716a6ffd474
Signed-off-by: default avatarDylan Chang <dylan.chang@oneplus.com>
Bug: 152116739
(cherry picked from commit feff0b2236497c0651baa7f59ea50c2377fff053)
Signed-off-by: default avatarPaul Lawrence <paullawrence@google.com>
parent 4e614988
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -792,6 +792,7 @@ static int prepare_unchanged_range(struct bow_context *bc, struct bow_range *br,
	 */
	original_type = br->type;
	sector0 = backup_br->sector;
	bc->trims_total -= range_size(backup_br);
	if (backup_br->type == TRIMMED)
		list_del(&backup_br->trimmed_list);
	backup_br->type = br->type == SECTOR0_CURRENT ? SECTOR0_CURRENT