Unmount public volume if FUSE mount fails am: f71707916f

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/vold/+/11900947

Change-Id: Ia3c372428ad1098785f422befac0ba833d56d6a7
gugelfrei
Zim 4 years ago committed by Automerger Merge Worker
commit 0f9690e391

@ -238,6 +238,7 @@ status_t PublicVolume::doMount() {
if (result != 0) {
LOG(ERROR) << "Failed to mount public fuse volume";
doUnmount();
return -result;
}
@ -247,6 +248,8 @@ status_t PublicVolume::doMount() {
bool is_ready = false;
callback->onVolumeChecking(std::move(fd), getPath(), getInternalPath(), &is_ready);
if (!is_ready) {
LOG(ERROR) << "Failed to complete public volume mount";
doUnmount();
return -EIO;
}
}

Loading…
Cancel
Save