aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/txp
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2005-09-19 03:10:21 +0000
committerWarner Losh <imp@FreeBSD.org>2005-09-19 03:10:21 +0000
commitad4f426ef63acf8f93962c281274c677a055e500 (patch)
treec3358cebc77043ea8b2a3a5036b02dad6a674b7e /sys/dev/txp
parent6763e7c1edc7198eca8ab7017018b03f5c41e012 (diff)
Notes
Diffstat (limited to 'sys/dev/txp')
-rw-r--r--sys/dev/txp/if_txp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/txp/if_txp.c b/sys/dev/txp/if_txp.c
index 0a35070d069e1..03bd0b469ce19 100644
--- a/sys/dev/txp/if_txp.c
+++ b/sys/dev/txp/if_txp.c
@@ -392,9 +392,6 @@ txp_release_resources(sc)
dev = sc->sc_dev;
- if (sc->sc_ifp)
- if_free(sc->sc_ifp);
-
if (sc->sc_intrhand != NULL)
bus_teardown_intr(dev, sc->sc_irq, sc->sc_intrhand);
@@ -407,6 +404,9 @@ txp_release_resources(sc)
if (sc->sc_ldata != NULL)
contigfree(sc->sc_ldata, sizeof(struct txp_ldata), M_DEVBUF);
+ if (sc->sc_ifp)
+ if_free(sc->sc_ifp);
+
return;
}