]> git.ipfire.org Git - thirdparty/qemu.git/commit
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)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Fri, 12 Oct 2012 02:44:13 +0000 (21:44 -0500)
commit712fc762a65479e2a4c77bf51da520ec6dcf4cb5
treecacb1e4baba6698fb3fec2ea68d2e76e275a8b23
parenta37d5e521a948dc582c66e52e84a0348a8c11de9
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>
(cherry picked from commit dafe31fc2a8653b535d58f8c7b250c0827b14420)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/usb/hcd-ehci.c