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

Commit 1393adb2 authored by Alan Stern's avatar Alan Stern Committed by Greg Kroah-Hartman
Browse files

[PATCH] uhci-hcd: fix mistaken usage of list_prepare_entry



A recent update to the uhci-hcd driver invoked the list_prepare_entry
macro incorrectly.  This patch (as646) corrects it.

Signed-off-by: default avatarAlan Stern <stern@rowland.harvard.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent dbf4fcad
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -259,7 +259,7 @@ static void uhci_fixup_toggles(struct uhci_qh *qh, int skip_first)
	/* Fix up the toggle for the URBs in the queue.  Normally this
	/* Fix up the toggle for the URBs in the queue.  Normally this
	 * loop won't run more than once: When an error or short transfer
	 * loop won't run more than once: When an error or short transfer
	 * occurs, the queue usually gets emptied. */
	 * occurs, the queue usually gets emptied. */
	list_prepare_entry(urbp, &qh->queue, node);
	urbp = list_prepare_entry(urbp, &qh->queue, node);
	list_for_each_entry_continue(urbp, &qh->queue, node) {
	list_for_each_entry_continue(urbp, &qh->queue, node) {


		/* If the first TD has the right toggle value, we don't
		/* If the first TD has the right toggle value, we don't