From: Sarah Sharp Date: Tue, 6 Oct 2009 20:45:59 +0000 (-0700) Subject: USB: ehci: Fix isoc scheduling boundary checking. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d55500941fe6db4d7424c744522ee2451ac1ceda;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git USB: ehci: Fix isoc scheduling boundary checking. The EHCI driver does some bounds checking when it's scheduling an iTD for an active endpoint. It sets the local variable start to stream->next_uframe and moves that variable further in the schedule if necessary. However, the driver fails to do anything with start before jumping to the ready label and setting the URB's starting frame to stream->next_uframe. Alan Stern confirms the EHCI driver should set stream->next_uframe to start before jumping. Signed-off-by: Sarah Sharp Acked-by: Alan Stern Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/host/ehci-sched.c b/drivers/usb/host/ehci-sched.c index 3ea05936851f..3efa59b18044 100644 --- a/drivers/usb/host/ehci-sched.c +++ b/drivers/usb/host/ehci-sched.c @@ -1425,6 +1425,7 @@ iso_stream_schedule ( status = -EFBIG; goto fail; } + stream->next_uframe = start; goto ready; }