summary refs log tree commit diff stats
path: root/hw/usb/host-libusb.c
diff options
context:
space:
mode:
authorBandan Das <bsd@redhat.com>2019-03-06 16:04:08 -0500
committerGerd Hoffmann <kraxel@redhat.com>2019-03-07 10:02:48 +0100
commit298ac63c4428e05b09f9d0959f89fd5436c4a0ec (patch)
tree10411d58b69038afd15a577f6f03369936776e75 /hw/usb/host-libusb.c
parentc5ead51f90cf33ccf07974eba5154be2af2c7fc3 (diff)
downloadfocaccia-qemu-298ac63c4428e05b09f9d0959f89fd5436c4a0ec.tar.gz
focaccia-qemu-298ac63c4428e05b09f9d0959f89fd5436c4a0ec.zip
usb-mtp: fix some usb_mtp_write_data return paths
During a write, free up the "path" before getting more data.
Also, while we at it, remove the confusing usage of d->fd for
storing mkdir status

Spotted by Coverity: CID 1398642

Signed-off-by: Bandan Das <bsd@redhat.com>
Message-id: 20190306210409.14842-3-bsd@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/usb/host-libusb.c')
0 files changed, 0 insertions, 0 deletions