diff options
author | ru <ru@FreeBSD.org> | 2005-10-13 21:11:20 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2005-10-13 21:11:20 +0000 |
commit | b9c7add838ccaace56cbb1d065e502e478f92d4e (patch) | |
tree | 42d971c6d541bfdfd3204acba1a4ae6004c37124 /sys/pci/if_wb.c | |
parent | 9d4f7296d4bd26d172e55a582c41d028d6dceb40 (diff) | |
download | FreeBSD-src-b9c7add838ccaace56cbb1d065e502e478f92d4e.zip FreeBSD-src-b9c7add838ccaace56cbb1d065e502e478f92d4e.tar.gz |
In detach method, move if_free() after bus_teardown_intr().
Diffstat (limited to 'sys/pci/if_wb.c')
-rw-r--r-- | sys/pci/if_wb.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/pci/if_wb.c b/sys/pci/if_wb.c index a4a6ef2..b2e8170 100644 --- a/sys/pci/if_wb.c +++ b/sys/pci/if_wb.c @@ -920,8 +920,6 @@ wb_detach(dev) wb_stop(sc); ether_ifdetach(ifp); } - if (ifp) - if_free(ifp); if (sc->wb_miibus) device_delete_child(dev, sc->wb_miibus); bus_generic_detach(dev); @@ -933,6 +931,9 @@ wb_detach(dev) if (sc->wb_res) bus_release_resource(dev, WB_RES, WB_RID, sc->wb_res); + if (ifp) + if_free(ifp); + if (sc->wb_ldata) { contigfree(sc->wb_ldata, sizeof(struct wb_list_data) + 8, M_DEVBUF); |