commit | 44dd4196806ef015e7df3c671ca986b0b5ca0f73 | [log] [tgz] |
---|---|---|
author | Bandan <bsd@redhat.com> | Fri Sep 07 18:08:49 2018 -0400 |
committer | Gerd Hoffmann <kraxel@redhat.com> | Mon Oct 01 10:49:53 2018 +0200 |
tree | 108837fb263ad8a854c4cff0654b5fe03cc4ceeb | |
parent | 07f426c35eddd79388a23d11cb278600d7e3831d [diff] |
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>