diff options
Diffstat (limited to 'fastboot')
-rw-r--r-- | fastboot/protocol.c | 5 |
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); } |