commit | 373b7a2df0c076c859ea6bfb72ae8b88005e4d1f | [log] [tgz] |
---|---|---|
author | David Anderson <dvander@google.com> | Mon Jul 30 16:50:32 2018 -0700 |
committer | android-build-merger <android-build-merger@google.com> | Mon Jul 30 16:50:32 2018 -0700 |
tree | 33371e1baaa2ae394b859ff37b7b4b422d23686f | |
parent | 6b5970f0705e64b218492179cc94cecb8ce1a6f2 [diff] | |
parent | 1a9f60e7589cb8c68a0bcc40105dd148806913b4 [diff] |
Merge "fastboot: Fix hang when sparse images end in small chunks." am: d0d7d0a6b9 Change-Id: Ia98cc2ed8f09ad99aa8d00ba7edb16553827556c
diff --git a/fastboot/fastboot_driver.cpp b/fastboot/fastboot_driver.cpp index c308420..aabc620 100644 --- a/fastboot/fastboot_driver.cpp +++ b/fastboot/fastboot_driver.cpp
@@ -462,6 +462,10 @@ } RetCode FastBootDriver::SendBuffer(const void* buf, size_t size) { + if (!size) { + return SUCCESS; + } + // Write the buffer ssize_t tmp = transport->Write(buf, size);