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

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

Merge "UDC: Dm-Bow failed to load when size is not Multiple of 4096"

parents bb794847 d3d6b845
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -1176,6 +1176,10 @@ class CheckpointManager {
                    return false;
                    return false;
                }
                }


                // dm-bow will not load if size is not a multiple of 4096
                // rounding down does not hurt, since ext4 will only use full blocks
                size &= ~7;

                android::dm::DmTable table;
                android::dm::DmTable table;
                auto bowTarget =
                auto bowTarget =
                        std::make_unique<android::dm::DmTargetBow>(0, size, entry->blk_device);
                        std::make_unique<android::dm::DmTargetBow>(0, size, entry->blk_device);