]> git.ipfire.org Git - thirdparty/qemu.git/commit
usb-redir: Get rid of local shadow copy of packet headers
authorHans de Goede <hdegoede@redhat.com>
Tue, 28 Aug 2012 07:05:38 +0000 (09:05 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Fri, 12 Oct 2012 02:44:15 +0000 (21:44 -0500)
commitaa57b628e0db7756746d83c2ca16034341356bc8
tree34e3945799903d992890f5956055a1406c2aa5c0
parent57eae744d45204e5b04b5ddcd9be044fef0b7da0
usb-redir: Get rid of local shadow copy of packet headers

The shadow copy only serves as an extra check (besides the packet-id) to
ensure the packet we get back is a reply to the packet we think it is.

This check has never triggered in all the time usb-redir is in use now,
and since the verified data in the returned packet-header is not used
otherwise, removing the check does not open any possibilities for the
usbredirhost to confuse us.

This is a preparation patch for completely getting rid of the async-packet
struct in usb-redir, instead relying on the (new) per ep queues in the
qemu usb core.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
(cherry picked from commit 104981d52b63dc3d68f39d4442881c667f44bbb9)

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