diff options
author | Bandan Das | 2018-07-20 23:40:17 +0200 |
---|---|---|
committer | Gerd Hoffmann | 2018-08-21 10:27:59 +0200 |
commit | 406f35d7fcf5f029780d2e0cc9fa0cc37856d57c (patch) | |
tree | 94d6fabe95c83333be396d718157bc08760db668 /hw/timer/sh_timer.c | |
parent | dev-mtp: add support for canceling transaction (diff) | |
download | qemu-406f35d7fcf5f029780d2e0cc9fa0cc37856d57c.tar.gz qemu-406f35d7fcf5f029780d2e0cc9fa0cc37856d57c.tar.xz qemu-406f35d7fcf5f029780d2e0cc9fa0cc37856d57c.zip |
dev-mtp: fix buffer allocation for writing file contents
usb_mtp_realloc() was being incorrectly used when allocating
buffer for incoming data. Set d->length only after resizing
the buffer.
Signed-off-by: Bandan Das <bsd@redhat.com>
Message-id: 20180720214020.22897-3-bsd@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/timer/sh_timer.c')
0 files changed, 0 insertions, 0 deletions