diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2003-08-06 20:40:31 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2003-08-06 20:40:31 +0000 |
commit | fc9c86b3f8ae95ba6030429f8549b93f28c89e1a (patch) | |
tree | 9d75a8c2b6e4c57259041809ce8c9258bdef4b16 /sys/dev/usb/ohci.c | |
parent | b354a1759f84a40ad1acaa034608005f5a8c253c (diff) |
The cleanup in ohci_init() is wrong; the statements for label bad2
and label bad3 should be swapped. From Patrick Latifi
ok deraadt@ and fgs@
Diffstat (limited to 'sys/dev/usb/ohci.c')
-rw-r--r-- | sys/dev/usb/ohci.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/ohci.c b/sys/dev/usb/ohci.c index 26d96ef8793..12677454263 100644 --- a/sys/dev/usb/ohci.c +++ b/sys/dev/usb/ohci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ohci.c,v 1.35 2003/07/08 13:19:09 nate Exp $ */ +/* $OpenBSD: ohci.c,v 1.36 2003/08/06 20:40:30 millert Exp $ */ /* $NetBSD: ohci.c,v 1.139 2003/02/22 05:24:16 tsutsui Exp $ */ /* $FreeBSD: src/sys/dev/usb/ohci.c,v 1.22 1999/11/17 22:33:40 n_hibma Exp $ */ @@ -884,9 +884,9 @@ ohci_init(ohci_softc_t *sc) bad4: ohci_free_sed(sc, sc->sc_isoc_head); bad3: - ohci_free_sed(sc, sc->sc_ctrl_head); - bad2: ohci_free_sed(sc, sc->sc_bulk_head); + bad2: + ohci_free_sed(sc, sc->sc_ctrl_head); bad1: usb_freemem(&sc->sc_bus, &sc->sc_hccadma); return (err); |