diff options
| author | martin <martin@NetBSD.org> | 2013-10-24 13:15:12 +0000 |
|---|---|---|
| committer | martin <martin@NetBSD.org> | 2013-10-24 13:15:12 +0000 |
| commit | 340d4c53cb56aee93bc863c9dff55fcbe6b9e56e (patch) | |
| tree | cb9593d816dbcca440d4d1e6146d2aae3049e136 /sys/dev | |
| parent | 8dd0601125a09fdc54528b8ee79e1b491fc900fa (diff) | |
Fix a few copy&pastos in an error path
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/ic/sgec.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/ic/sgec.c b/sys/dev/ic/sgec.c index 12d450aace6..6d9d8bac9fc 100644 --- a/sys/dev/ic/sgec.c +++ b/sys/dev/ic/sgec.c @@ -1,4 +1,4 @@ -/* $NetBSD: sgec.c,v 1.39 2010/11/13 13:52:02 uebayasi Exp $ */ +/* $NetBSD: sgec.c,v 1.40 2013/10/24 13:15:12 martin Exp $ */ /* * Copyright (c) 1999 Ludd, University of Lule}, Sweden. All rights reserved. * @@ -45,7 +45,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: sgec.c,v 1.39 2010/11/13 13:52:02 uebayasi Exp $"); +__KERNEL_RCSID(0, "$NetBSD: sgec.c,v 1.40 2013/10/24 13:15:12 martin Exp $"); #include "opt_inet.h" @@ -241,17 +241,17 @@ sgec_attach(struct ze_softc *sc) fail_6: for (i = 0; i < RXDESCS; i++) { if (sc->sc_rxmbuf[i] != NULL) { - bus_dmamap_unload(sc->sc_dmat, sc->sc_xmtmap[i]); + bus_dmamap_unload(sc->sc_dmat, sc->sc_rcvmap[i]); m_freem(sc->sc_rxmbuf[i]); } } fail_5: - for (i = 0; i < RXDESCS; i++) { + for (i = 0; i < TXDESCS; i++) { if (sc->sc_xmtmap[i] != NULL) bus_dmamap_destroy(sc->sc_dmat, sc->sc_xmtmap[i]); } fail_4: - for (i = 0; i < TXDESCS; i++) { + for (i = 0; i < RXDESCS; i++) { if (sc->sc_rcvmap[i] != NULL) bus_dmamap_destroy(sc->sc_dmat, sc->sc_rcvmap[i]); } |
