OSDN Git Service

ehci: Validate qh is not changed unexpectedly by the guest
authorHans de Goede <hdegoede@redhat.com>
Wed, 29 Aug 2012 08:37:37 +0000 (10:37 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 11 Sep 2012 05:42:59 +0000 (07:42 +0200)
commitdafe31fc2a8653b535d58f8c7b250c0827b14420
treed0ae767d639da16be8e7de2c09c7f7d480b479a1
parent66f092d25697e11847b61d761c38ddebedaed8d1
ehci: Validate qh is not changed unexpectedly by the guest

-combine the qh check with the check for devaddr changes
-also ensure that p gets set to NULL when the queue gets cancelled on
 devaddr change, which was not done properly before this patch

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