summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dynamic_partition_control_android.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/dynamic_partition_control_android.cc b/dynamic_partition_control_android.cc
index bf31244d..20e02ac8 100644
--- a/dynamic_partition_control_android.cc
+++ b/dynamic_partition_control_android.cc
@@ -493,8 +493,13 @@ bool DynamicPartitionControlAndroid::PreparePartitionsForUpdate(
}
}
- return PrepareDynamicPartitionsForUpdate(
- source_slot, target_slot, manifest, delete_source);
+ TEST_AND_RETURN_FALSE(PrepareDynamicPartitionsForUpdate(
+ source_slot, target_slot, manifest, delete_source));
+
+ if (required_size != nullptr) {
+ *required_size = 0;
+ }
+ return true;
}
namespace {