summaryrefslogtreecommitdiffstats
path: root/fastboot
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2015-03-19 19:26:19 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-03-19 19:26:19 +0000
commitac6bc5f45a557981ae204fca76c40d31660624b1 (patch)
tree4eed899d6fa926633c6fff5ddf88ceb768b2f634 /fastboot
parent5b40fcbd1dbac7e9d0534154265230ba87dfb39e (diff)
parent369aa9e90d741545a7a639f7f0f4cd265faf252e (diff)
downloadsystem_core-ac6bc5f45a557981ae204fca76c40d31660624b1.zip
system_core-ac6bc5f45a557981ae204fca76c40d31660624b1.tar.gz
system_core-ac6bc5f45a557981ae204fca76c40d31660624b1.tar.bz2
am 369aa9e9: am 99938804: Merge "fastboot/sparse: propagate error code"
* commit '369aa9e90d741545a7a639f7f0f4cd265faf252e': fastboot/sparse: propagate error code
Diffstat (limited to 'fastboot')
-rw-r--r--fastboot/protocol.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/fastboot/protocol.c b/fastboot/protocol.c
index 10a84c1..5b97600 100644
--- a/fastboot/protocol.c
+++ b/fastboot/protocol.c
@@ -305,7 +305,10 @@ int fb_download_data_sparse(usb_handle *usb, struct sparse_file *s)
return -1;
}
- fb_download_data_sparse_flush(usb);
+ r = fb_download_data_sparse_flush(usb);
+ if (r < 0) {
+ return -1;
+ }
return _command_end(usb);
}