]> git.baikalelectronics.ru Git - kernel.git/commit
USB: ehci: Fix isoc scheduling boundary checking.
authorSarah Sharp <sarah.a.sharp@linux.intel.com>
Tue, 6 Oct 2009 20:45:59 +0000 (13:45 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 9 Oct 2009 20:52:08 +0000 (13:52 -0700)
commit6a2e5be8387c813efc24008f6d2ba317c92730d0
treee480db815f57044e18d9167db9e1ed7f45354266
parent3c2db5f0807e9c701eb775971fa4313a5690fe27
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 <sarah.a.sharp@linux.intel.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/ehci-sched.c