diff options
| author | Ruslan Ermilov <ru@FreeBSD.org> | 2005-10-13 21:11:20 +0000 |
|---|---|---|
| committer | Ruslan Ermilov <ru@FreeBSD.org> | 2005-10-13 21:11:20 +0000 |
| commit | e019908ee7d7e1d448e2944bc76e9b8e940c690f (patch) | |
| tree | 42d971c6d541bfdfd3204acba1a4ae6004c37124 /sys/dev/ti | |
| parent | 646abee6e3f3e8a80951b914969dd4fae90ba2c3 (diff) | |
Notes
Diffstat (limited to 'sys/dev/ti')
| -rw-r--r-- | sys/dev/ti/if_ti.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ti/if_ti.c b/sys/dev/ti/if_ti.c index 43e9ec6fd618..d4fd43791c68 100644 --- a/sys/dev/ti/if_ti.c +++ b/sys/dev/ti/if_ti.c @@ -2330,8 +2330,6 @@ ti_detach(dev) ether_ifdetach(ifp); bus_generic_detach(dev); } - if (ifp) - if_free(ifp); ifmedia_removeall(&sc->ifmedia); if (sc->ti_rdata) @@ -2349,6 +2347,8 @@ ti_detach(dev) bus_release_resource(dev, SYS_RES_MEMORY, TI_PCI_LOMEM, sc->ti_res); } + if (ifp) + if_free(ifp); #ifdef TI_PRIVATE_JUMBOS if (sc->ti_cdata.ti_jumbo_buf) |
