diff options
| author | Dan Carpenter <dan.carpenter@oracle.com> | 2011-11-22 02:28:31 -0500 |
|---|---|---|
| committer | Herton Ronaldo Krzesinski <herton.krzesinski@canonical.com> | 2011-12-12 08:07:07 -0500 |
| commit | 40c967748197d8f186f7a9b6bbad36600c22c97f (patch) | |
| tree | 5ecad859ac38d6ed4c64098f93481d3e73cb129c /drivers/usb/host | |
| parent | 2078ce225ac48ea756a5b30988e54d59b72ad430 (diff) | |
USB: whci-hcd: fix endian conversion in qset_clear()
BugLink: http://bugs.launchpad.net/bugs/902312
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>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Diffstat (limited to 'drivers/usb/host')
| -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 d6e17542861..a403b53e86b 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) | |||
| 124 | { | 124 | { |
| 125 | qset->td_start = qset->td_end = qset->ntds = 0; | 125 | qset->td_start = qset->td_end = qset->ntds = 0; |
| 126 | 126 | ||
| 127 | qset->qh.link = cpu_to_le32(QH_LINK_NTDS(8) | QH_LINK_T); | 127 | qset->qh.link = cpu_to_le64(QH_LINK_NTDS(8) | QH_LINK_T); |
| 128 | qset->qh.status = qset->qh.status & QH_STATUS_SEQ_MASK; | 128 | qset->qh.status = qset->qh.status & QH_STATUS_SEQ_MASK; |
| 129 | qset->qh.err_count = 0; | 129 | qset->qh.err_count = 0; |
| 130 | qset->qh.scratch[0] = 0; | 130 | qset->qh.scratch[0] = 0; |
