Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 99688ecf authored by Alan Stern's avatar Alan Stern Committed by Greg Kroah-Hartman
Browse files

USB: EHCI: fix initialization bug in iso_stream_schedule()



commit 6d89252a998a695ecb0348fc2d717dc33d90cae9 upstream.

Commit c3ee9b76 (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: default avatarAlan Stern <stern@rowland.harvard.edu>
Fixes: c3ee9b76
Reported-by: default avatarJoe Bryant <tenminjoe@yahoo.com>
Tested-by: default avatarJoe Bryant <tenminjoe@yahoo.com>
Tested-by: default avatarMartin Long <martin@longhome.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 72934919
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment