diff options
author | Bandan | 2018-09-08 00:08:49 +0200 |
---|---|---|
committer | Gerd Hoffmann | 2018-10-01 10:49:53 +0200 |
commit | 44dd4196806ef015e7df3c671ca986b0b5ca0f73 (patch) | |
tree | 108837fb263ad8a854c4cff0654b5fe03cc4ceeb /include/hw/mem/memory-device.h | |
parent | Merge remote-tracking branch 'remotes/rth/tags/pull-tcg-20180926' into staging (diff) | |
download | qemu-44dd4196806ef015e7df3c671ca986b0b5ca0f73.tar.gz qemu-44dd4196806ef015e7df3c671ca986b0b5ca0f73.tar.xz qemu-44dd4196806ef015e7df3c671ca986b0b5ca0f73.zip |
usb-mtp: fix error conditions for write operation
Return STORE_FULL if we can't write all the bytes but
return incomplete transfer if data received is less then
what was specified in the metadata. Also, use d->offset
as the file size which is valid for all file sizes.
Signed-off-by: Bandan <bsd@redhat.com>
Message-id: 20180907220851.9658-2-bsd@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'include/hw/mem/memory-device.h')
0 files changed, 0 insertions, 0 deletions