Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/usb Add missed le32toh() in uhci_device_isoc_abort().



details:   https://anonhg.NetBSD.org/src/rev/f30528907ee2
branches:  trunk
changeset: 500775:f30528907ee2
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Mon Dec 18 15:55:30 2000 +0000

description:
Add missed le32toh() in uhci_device_isoc_abort().

diffstat:

 sys/dev/usb/uhci.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 8e738c760462 -r f30528907ee2 sys/dev/usb/uhci.c
--- a/sys/dev/usb/uhci.c        Mon Dec 18 15:05:30 2000 +0000
+++ b/sys/dev/usb/uhci.c        Mon Dec 18 15:55:30 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uhci.c,v 1.129 2000/12/16 16:09:24 augustss Exp $      */
+/*     $NetBSD: uhci.c,v 1.130 2000/12/18 15:55:30 tsutsui Exp $       */
 /*     $FreeBSD: src/sys/dev/usb/uhci.c,v 1.33 1999/11/17 22:33:41 n_hibma Exp $       */
 
 /*
@@ -2371,7 +2371,7 @@
        for (i = 0; i < nframes; i++) {
                std = stds[n];
                std->td.td_status &= htole32(~(UHCI_TD_ACTIVE | UHCI_TD_IOC));
-               len = UHCI_TD_GET_MAXLEN(std->td.td_token);
+               len = UHCI_TD_GET_MAXLEN(le32toh(std->td.td_token));
                if (len > maxlen)
                        maxlen = len;
                if (++n >= UHCI_VFRAMELIST_COUNT)



Home | Main Index | Thread Index | Old Index