Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic Add (missed) bus_dmemem_free() in rtk_detach().



details:   https://anonhg.NetBSD.org/src/rev/9e7643f068d0
branches:  trunk
changeset: 500257:9e7643f068d0
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sat Dec 09 02:02:20 2000 +0000

description:
Add (missed) bus_dmemem_free() in rtk_detach().

diffstat:

 sys/dev/ic/rtl81x9.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r 4f881cd5260d -r 9e7643f068d0 sys/dev/ic/rtl81x9.c
--- a/sys/dev/ic/rtl81x9.c      Sat Dec 09 01:29:45 2000 +0000
+++ b/sys/dev/ic/rtl81x9.c      Sat Dec 09 02:02:20 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rtl81x9.c,v 1.23 2000/12/05 11:11:49 tsutsui Exp $     */
+/*     $NetBSD: rtl81x9.c,v 1.24 2000/12/09 02:02:20 tsutsui Exp $     */
 
 /*
  * Copyright (c) 1997, 1998
@@ -859,6 +859,7 @@
        bus_dmamap_destroy(sc->sc_dmat, sc->recv_dmamap);
        bus_dmamem_unmap(sc->sc_dmat, (caddr_t)sc->rtk_cdata.rtk_rx_buf,
            RTK_RXBUFLEN + 16);
+       bus_dmamem_free(sc->sc_dmat, &sc->sc_dmaseg, sc->sc_dmanseg);
 
        shutdownhook_disestablish(sc->sc_sdhook);
        powerhook_disestablish(sc->sc_powerhook);



Home | Main Index | Thread Index | Old Index