* [Qemu-devel] [PATCH] usb-ehci: drop assert()
@ 2012-03-30 11:26 Gerd Hoffmann
2012-03-30 14:21 ` Hans de Goede
0 siblings, 1 reply; 2+ messages in thread
From: Gerd Hoffmann @ 2012-03-30 11:26 UTC (permalink / raw)
To: qemu-devel; +Cc: Gerd Hoffmann
Not sure what the purpose of the assert() was, in any case it is bogous.
We can arrive there if transfer descriptors passed to us from the guest
failed to pass sanity checks, i.e. it is guest-triggerable. We deal
with that case by resetting the host controller. Everything is ok, no
need to throw a core dump here.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
hw/usb/hcd-ehci.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/hw/usb/hcd-ehci.c b/hw/usb/hcd-ehci.c
index e12f098..23631a4 100644
--- a/hw/usb/hcd-ehci.c
+++ b/hw/usb/hcd-ehci.c
@@ -2009,7 +2009,6 @@ static void ehci_advance_state(EHCIState *ehci,
fprintf(stderr, "processing error - resetting ehci HC\n");
ehci_reset(ehci);
again = 0;
- assert(0);
}
}
while (again);
--
1.7.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] [PATCH] usb-ehci: drop assert()
2012-03-30 11:26 [Qemu-devel] [PATCH] usb-ehci: drop assert() Gerd Hoffmann
@ 2012-03-30 14:21 ` Hans de Goede
0 siblings, 0 replies; 2+ messages in thread
From: Hans de Goede @ 2012-03-30 14:21 UTC (permalink / raw)
To: Gerd Hoffmann; +Cc: qemu-devel
Looks good, ACK.
Acked-by: Hans de Goede <hdegoede@redhat.com>
On 03/30/2012 01:26 PM, Gerd Hoffmann wrote:
> Not sure what the purpose of the assert() was, in any case it is bogous.
> We can arrive there if transfer descriptors passed to us from the guest
> failed to pass sanity checks, i.e. it is guest-triggerable. We deal
> with that case by resetting the host controller. Everything is ok, no
> need to throw a core dump here.
>
> Signed-off-by: Gerd Hoffmann<kraxel@redhat.com>
> ---
> hw/usb/hcd-ehci.c | 1 -
> 1 files changed, 0 insertions(+), 1 deletions(-)
>
> diff --git a/hw/usb/hcd-ehci.c b/hw/usb/hcd-ehci.c
> index e12f098..23631a4 100644
> --- a/hw/usb/hcd-ehci.c
> +++ b/hw/usb/hcd-ehci.c
> @@ -2009,7 +2009,6 @@ static void ehci_advance_state(EHCIState *ehci,
> fprintf(stderr, "processing error - resetting ehci HC\n");
> ehci_reset(ehci);
> again = 0;
> - assert(0);
> }
> }
> while (again);
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-03-30 14:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-30 11:26 [Qemu-devel] [PATCH] usb-ehci: drop assert() Gerd Hoffmann
2012-03-30 14:21 ` Hans de Goede
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).