提交 d5550094 编写于 作者: S Sarah Sharp 提交者: Greg Kroah-Hartman

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: NSarah Sharp <sarah.a.sharp@linux.intel.com>
Acked-by: NAlan Stern <stern@rowland.harvard.edu>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 f1a0743b
...@@ -1425,6 +1425,7 @@ iso_stream_schedule ( ...@@ -1425,6 +1425,7 @@ iso_stream_schedule (
status = -EFBIG; status = -EFBIG;
goto fail; goto fail;
} }
stream->next_uframe = start;
goto ready; goto ready;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册