Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f3700b9e authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "libsnapshot: fix null pointer deref"

parents e3a77836 39de68cb
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1219,7 +1219,8 @@ bool SnapshotManager::RemoveAllSnapshots(LockedFile* lock) {
        if (!UnmapPartitionWithSnapshot(lock, name) || !DeleteSnapshot(lock, name)) {
            // Remember whether or not we were able to unmap the cow image.
            auto cow_image_device = GetCowImageDeviceName(name);
            has_mapped_cow_images |= images_->IsImageMapped(cow_image_device);
            has_mapped_cow_images |=
                    (EnsureImageManager() && images_->IsImageMapped(cow_image_device));

            ok = false;
        }