aboutsummaryrefslogtreecommitdiff
path: root/bt-host.c
diff options
context:
space:
mode:
authorBandan Das <bsd@redhat.com>2018-07-20 17:40:17 -0400
committerGerd Hoffmann <kraxel@redhat.com>2018-08-21 10:27:59 +0200
commit406f35d7fcf5f029780d2e0cc9fa0cc37856d57c (patch)
tree94d6fabe95c83333be396d718157bc08760db668 /bt-host.c
parent47bff13cea8dd3e6ae869c3203723d93bd734637 (diff)
downloadqemu-406f35d7fcf5f029780d2e0cc9fa0cc37856d57c.zip
qemu-406f35d7fcf5f029780d2e0cc9fa0cc37856d57c.tar.gz
qemu-406f35d7fcf5f029780d2e0cc9fa0cc37856d57c.tar.bz2
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 'bt-host.c')
0 files changed, 0 insertions, 0 deletions