uhci: Properly unmap packets on cancel / invalid pid
commit00a0770de3ddb803a0f81f6aea40b0f945154a68
authorHans de Goede <hdegoede@redhat.com>
Wed, 24 Oct 2012 16:13:57 +0000 (24 18:13 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 25 Oct 2012 07:08:08 +0000 (25 09:08 +0200)
treed69254868fc2a0d040c42e01e3ffb50a127bbf00
parenta8170e5e97ad17ca169c64ba87ae2f53850dab4c
uhci: Properly unmap packets on cancel / invalid pid

Packets with an invalid pid, or which were cancelled have
usb_packet_map() called on them on init, but not usb_packet_unmap()
before being freed.

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