diff options
| author | Bandan <bsd@redhat.com> | 2018-09-07 18:08:49 -0400 |
|---|---|---|
| committer | Gerd Hoffmann <kraxel@redhat.com> | 2018-10-01 10:49:53 +0200 |
| commit | 44dd4196806ef015e7df3c671ca986b0b5ca0f73 (patch) | |
| tree | 108837fb263ad8a854c4cff0654b5fe03cc4ceeb /hw/usb/dev-hub.c | |
| parent | 07f426c35eddd79388a23d11cb278600d7e3831d (diff) | |
| download | focaccia-qemu-44dd4196806ef015e7df3c671ca986b0b5ca0f73.tar.gz focaccia-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 'hw/usb/dev-hub.c')
0 files changed, 0 insertions, 0 deletions