projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e983395
)
ehci: Fix NULL ptr deref when unplugging an USB dev with an iso stream active
author
Hans de Goede
<hdegoede@redhat.com>
Tue, 28 Aug 2012 09:50:26 +0000
(11:50 +0200)
committer
Gerd Hoffmann
<kraxel@redhat.com>
Fri, 31 Aug 2012 09:57:41 +0000
(11:57 +0200)
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
hw/usb/hcd-ehci.c
patch
|
blob
|
history
diff --git
a/hw/usb/hcd-ehci.c
b/hw/usb/hcd-ehci.c
index f43d690eb54a50032639883f214d8fa22e1c81b2..a3aea6debea3b4fa2b7271e6dbc2eb51673a583d 100644
(file)
--- a/
hw/usb/hcd-ehci.c
+++ b/
hw/usb/hcd-ehci.c
@@
-1598,7
+1598,7
@@
static int ehci_process_itd(EHCIState *ehci,
dev = ehci_find_device(ehci, devaddr);
ep = usb_ep_get(dev, pid, endp);
- if (ep->type == USB_ENDPOINT_XFER_ISOC) {
+ if (ep
&& ep
->type == USB_ENDPOINT_XFER_ISOC) {
usb_packet_setup(&ehci->ipacket, pid, ep, addr);
usb_packet_map(&ehci->ipacket, &ehci->isgl);
ret = usb_handle_packet(dev, &ehci->ipacket);