]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
USB: whci-hcd: fix endian conversion in qset_clear()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 22 Nov 2011 07:28:31 +0000 (10:28 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 9 Dec 2011 17:21:43 +0000 (09:21 -0800)
commit 8746c83d538cab273d335acb2be226d096f4a5af upstream.

qset->qh.link is an __le64 field and we should be using cpu_to_le64()
to fill it.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/whci/qset.c

index 1b9dc15715703781922100186a7e354277969e73..921cf806298bb5dc861960b7386110bc444f5642 100644 (file)
@@ -104,7 +104,7 @@ void qset_clear(struct whc *whc, struct whc_qset *qset)
 {
        qset->td_start = qset->td_end = qset->ntds = 0;
 
-       qset->qh.link = cpu_to_le32(QH_LINK_NTDS(8) | QH_LINK_T);
+       qset->qh.link = cpu_to_le64(QH_LINK_NTDS(8) | QH_LINK_T);
        qset->qh.status = qset->qh.status & QH_STATUS_SEQ_MASK;
        qset->qh.err_count = 0;
        qset->qh.scratch[0] = 0;