libsnapshot: Fix incorrect CHECK in PerformInitTransition().

The sector count can decrease as the merge progresses, so we only care
that the sector count is less than or equal to the device size.

Bug: N/A
Test: reboot during VABC merge
Change-Id: I1da956456ea28ca0fdfbf9373848987c9f71ff68
This commit is contained in:
David Anderson 2021-01-15 14:25:02 -08:00
parent 116be4e2bd
commit 52c6f991c5
1 changed files with 1 additions and 1 deletions

View File

@ -1410,7 +1410,7 @@ bool SnapshotManager::PerformInitTransition(InitTransition transition,
return false;
}
CHECK(base_sectors == target.spec.length);
CHECK(base_sectors <= target.spec.length);
if (!snapuserd_client_->AttachDmUser(misc_name)) {
// This error is unrecoverable. We cannot proceed because reads to