]> err.no Git - linux-2.6/commitdiff
[PATCH] uhci-hcd: fix mistaken usage of list_prepare_entry
authorAlan Stern <stern@rowland.harvard.edu>
Tue, 31 Jan 2006 15:02:55 +0000 (10:02 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 20 Mar 2006 22:49:58 +0000 (14:49 -0800)
A recent update to the uhci-hcd driver invoked the list_prepare_entry
macro incorrectly.  This patch (as646) corrects it.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/uhci-q.c

index 0c1b12091c487c427aa9e5dac4fb3f2401e66583..5d2f9575ab4fe799b046e5c0b6b25b6ab8c4bde7 100644 (file)
@@ -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
         * loop won't run more than once: When an error or short transfer
         * 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) {
 
                /* If the first TD has the right toggle value, we don't