usb-mtp: replace the homebrew write with qemu_write_full
authorBandan Das <bsd@redhat.com>
Tue, 29 Jan 2019 13:19:08 +0000 (08:19 -0500)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 30 Jan 2019 05:47:52 +0000 (06:47 +0100)
commit49f9e8d660d41cbe325d554e742d7100d59a7abf
tree579730c2d075574756ac0188ef3326f63f9df702
parentc1ef0f2519c706f738d76b9b68b6627c889bab14
usb-mtp: replace the homebrew write with qemu_write_full

qemu_write_full takes care of partial blocking writes,
as in cases of larger file sizes

Suggested-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Bandan Das <bsd@redhat.com>
Message-id: 20190129131908.27924-4-bsd@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb/dev-mtp.c