vold: fix infinite loop when failing to unmount a busy container in unmountVolume()
Signed-off-by: San Mehat <san@google.com>
diff --git a/VolumeManager.cpp b/VolumeManager.cpp
index 5a77c13..8e0165c 100644
--- a/VolumeManager.cpp
+++ b/VolumeManager.cpp
@@ -691,8 +691,8 @@
AsecIdCollection::iterator it = mActiveContainers->begin();
LOGI("Unmounting ASEC %s (dependant on %s)", *it, v->getMountpoint());
if (unmountAsec(*it, force)) {
- LOGE("Failed to unmount ASEC %s (%s) - unmount of %s may fail!", *it,
- strerror(errno), v->getMountpoint());
+ LOGE("Failed to unmount ASEC %s (%s)", *it, strerror(errno), v->getMountpoint());
+ return -1;
}
}