diff options
Diffstat (limited to 'sys/dev/txp/if_txp.c')
-rw-r--r-- | sys/dev/txp/if_txp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/txp/if_txp.c b/sys/dev/txp/if_txp.c index 0a35070..03bd0b4 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; } |