]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
USB: EHCI: fix initialization bug in iso_stream_schedule()
authorAlan Stern <stern@rowland.harvard.edu>
Thu, 4 Dec 2014 15:21:56 +0000 (10:21 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Jan 2015 17:58:49 +0000 (09:58 -0800)
commit6d89252a998a695ecb0348fc2d717dc33d90cae9
tree0f5595e1a4d31c87f22d39ddf2241590b03a0729
parentf161ead70fa6a62e432dff6e9dab8e3cfbeabea6
USB: EHCI: fix initialization bug in iso_stream_schedule()

Commit c3ee9b76aa93 (EHCI: improved logic for isochronous scheduling)
introduced the idea of using ehci->last_iso_frame as the origin (or
base) for the circular calculations involved in modifying the
isochronous schedule.  However, the new code it added used
ehci->last_iso_frame before the value was properly initialized.  This
patch rectifies the mistake by moving the initialization lines earlier
in iso_stream_schedule().

This fixes Bugzilla #72891.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Fixes: c3ee9b76aa93
Reported-by: Joe Bryant <tenminjoe@yahoo.com>
Tested-by: Joe Bryant <tenminjoe@yahoo.com>
Tested-by: Martin Long <martin@longhome.co.uk>
CC: <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ehci-sched.c