]> git.proxmox.com Git - qemu.git/commit
usb-host: don't dereference invalid iovecs
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 19 Apr 2012 11:35:07 +0000 (13:35 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 26 Apr 2012 10:21:16 +0000 (12:21 +0200)
commit818d59dc179b2861e49f3c6472787a23935aac0d
tree18c1f0565928752619be718950d6278ff51bc206
parent6d7aeeeb8985634a2015e804045a1ca52573ccc5
usb-host: don't dereference invalid iovecs

usb-host assumes the first iovec element is always valid.
In case of a zero-length packet this isn't true though.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb/host-linux.c