]> git.hungrycats.org Git - linux/commitdiff
[PATCH] USB: Fix endianness bug in UHCI driver
authorAlan Stern <stern@rowland.harvard.edu>
Wed, 14 Jul 2004 07:46:59 +0000 (00:46 -0700)
committerGreg Kroah-Hartman <greg@kroah.com>
Wed, 14 Jul 2004 07:46:59 +0000 (00:46 -0700)
This patch fixes a byte-swapping error in the UHCI driver.  It has been
present since 2.6.6 and only got tracked down just now!  Thanks a lot to
Michel Roelofs for all his help and testing.

This should be pushed through to Linus in time to appear in 2.6.8, if
possible.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/usb/host/uhci-hcd.c

index 1ae4aa4b6e3eff6998d8a8cea915028be5a8beb2..bf8ab3cd7247a4ba9df545079488cde9ce016fe5 100644 (file)
@@ -862,7 +862,7 @@ static int usb_control_retrigger_status(struct uhci_hcd *uhci, struct urb *urb)
        urbp->short_control_packet = 1;
 
        td = list_entry(urbp->td_list.prev, struct uhci_td, list);
-       urbp->qh->element = td->dma_handle;
+       urbp->qh->element = cpu_to_le32(td->dma_handle);
 
        return -EINPROGRESS;
 }