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

Commit 68ef056b 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

am: 64465fde

Change-Id: I02b040485405add95619ecc71eba0485401f83af
parents a78c580d 64465fde
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);