diff options
author | Dan Carpenter | 2011-11-22 08:28:31 +0100 |
---|---|---|
committer | Greg Kroah-Hartman | 2011-11-27 04:56:48 +0100 |
commit | 8746c83d538cab273d335acb2be226d096f4a5af (patch) | |
tree | 2f2f00b26403ac766088ceca34c71b51141ea644 /drivers/usb | |
parent | USB: usb-storage: unusual_devs entry for Kingston DT 101 G2 (diff) | |
download | kernel-qcow2-linux-8746c83d538cab273d335acb2be226d096f4a5af.tar.gz kernel-qcow2-linux-8746c83d538cab273d335acb2be226d096f4a5af.tar.xz kernel-qcow2-linux-8746c83d538cab273d335acb2be226d096f4a5af.zip |
USB: whci-hcd: fix endian conversion in qset_clear()
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>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/host/whci/qset.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/whci/qset.c b/drivers/usb/host/whci/qset.c index d6e175428618..a403b53e86b9 100644 --- a/drivers/usb/host/whci/qset.c +++ b/drivers/usb/host/whci/qset.c @@ -124,7 +124,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; |