ehci: Verify a queue's ep direction does not change
authorHans de Goede <hdegoede@redhat.com>
Fri, 14 Dec 2012 13:35:29 +0000 (14:35 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 7 Jan 2013 11:57:23 +0000 (12:57 +0100)
commitbbbc39ccacf66ef58261c155f9eed503947c3023
treeb0b96db909e383f3311d5f4205e3d5275f8f673c
parent51e0c5d02951ee5bd653132e46123f6e963ff23f
ehci: Verify a queue's ep direction does not change

ehci_fill_queue assumes that there is a one on one relationship between an ep
and a qh, this patch adds a check to ensure this.

Note I don't expect this to ever trigger, this is just something I noticed
the guest might do while working on other stuff. The only way this check can
trigger is if a guest mixes in and out qtd-s in a single qh for a non
control ep.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb/hcd-ehci.c
hw/usb/hcd-ehci.h