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

Commit 64465fde authored by David Anderson's avatar David Anderson Committed by android-build-merger
Browse files

Merge "fastboot: Fix hang when sparse images end in small chunks."

am: d0d7d0a6

Change-Id: Ia98cc2ed8f09ad99aa8d00ba7edb16553827556c
parents c4a8b5a5 d0d7d0a6
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -462,6 +462,10 @@ RetCode FastBootDriver::SendBuffer(const std::vector<char>& buf) {
}

RetCode FastBootDriver::SendBuffer(const void* buf, size_t size) {
    if (!size) {
        return SUCCESS;
    }

    // Write the buffer
    ssize_t tmp = transport->Write(buf, size);