usb-redir: allocate buffers before waking up the host adapter
commitd5c42857d6b0c35028897df8dfc3749eba6f6de3
authorHans de Goede <hdegoede@redhat.com>
Mon, 10 Oct 2016 10:45:13 +0000 (10 12:45 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 12 Oct 2016 12:37:24 +0000 (12 14:37 +0200)
tree48e38267471e72273fc8ee630636c20e8f08c6c8
parent6998b6c7c77e22d386fb8792365e668351d22f91
usb-redir: allocate buffers before waking up the host adapter

Needed to make sure usb redirection is prepared to actually handle the
callback from the usb host adapter.  Without this interrupt endpoints
don't work on xhci.

Note: On ehci the usb_wakeup() call only schedules a BH for the actual
work, which hides this bug because the allocation happens before ehci
calls back even without this patch.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Message-id: 1476096313-7730-1-git-send-email-kraxel@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb/redirect.c