usb: fix use after free
commit4d8debba766265d70cb7bf11570e3622512641d6
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 25 Aug 2011 14:43:15 +0000 (25 16:43 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 7 Sep 2011 07:58:26 +0000 (7 09:58 +0200)
tree91fb3dc80d1ece52056ddfcc0f80a1c15fb2c361
parent0c402e5abb8c2755390eee864b43a98280fc2453
usb: fix use after free

The ->complete() callback might have released the USBPacket (uhci
actually does), so we must not touch it after the callback returns.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb.c