xhci: call set-address with dummy usbpacket
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 14 Dec 2012 12:10:39 +0000 (13:10 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 7 Jan 2013 11:57:24 +0000 (12:57 +0100)
commita820b575787ac0b6b274b6a89aa6ef9813b4c782
tree817aa4a20eebc3f253d5ae9e6062bff979acfa37
parente97f0aca796fb949f9d34c50603511048a52b39b
xhci: call set-address with dummy usbpacket

Due to the way devices are addressed with xhci (done by hardware, not
the guest os) there is no packet when invoking the set-address control
request.  Create a dummy packet in that case to avoid null pointer
dereferences.

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