summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Anderson <dvander@google.com>2019-06-24 22:51:43 +0200
committerDavid Anderson <dvander@google.com>2019-06-24 22:51:43 +0200
commit32148d9a0afe0e75416fff73cb2bce1f641d6742 (patch)
treec637c47588f00510ae538b870de1842bc7ca0e50
parentMerge "Implement updater runtime for dynamic partitions" (diff)
downloadandroid_bootable_recovery-32148d9a0afe0e75416fff73cb2bce1f641d6742.tar
android_bootable_recovery-32148d9a0afe0e75416fff73cb2bce1f641d6742.tar.gz
android_bootable_recovery-32148d9a0afe0e75416fff73cb2bce1f641d6742.tar.bz2
android_bootable_recovery-32148d9a0afe0e75416fff73cb2bce1f641d6742.tar.lz
android_bootable_recovery-32148d9a0afe0e75416fff73cb2bce1f641d6742.tar.xz
android_bootable_recovery-32148d9a0afe0e75416fff73cb2bce1f641d6742.tar.zst
android_bootable_recovery-32148d9a0afe0e75416fff73cb2bce1f641d6742.zip
-rw-r--r--updater/updater_runtime_dynamic_partitions.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/updater/updater_runtime_dynamic_partitions.cpp b/updater/updater_runtime_dynamic_partitions.cpp
index e9f4c97c9..b084f6592 100644
--- a/updater/updater_runtime_dynamic_partitions.cpp
+++ b/updater/updater_runtime_dynamic_partitions.cpp
@@ -53,7 +53,7 @@ static bool UnmapPartitionOnDeviceMapper(const std::string& partition_name) {
return true;
}
if (state == DmDeviceState::ACTIVE) {
- return DestroyLogicalPartition(partition_name, kMapTimeout);
+ return DestroyLogicalPartition(partition_name);
}
LOG(ERROR) << "Unknown device mapper state: "
<< static_cast<std::underlying_type_t<DmDeviceState>>(state);