Fix "Memory modified after free" panic on detach, caused by accessing

already freed struct ifnet.
This commit is contained in:
ru 2005-09-14 10:28:01 +00:00
parent 0e68690fab
commit 743dc61d13

View File

@ -562,9 +562,6 @@ em_detach(device_t dev)
EM_LOCK_DESTROY(adapter);
ifp->if_drv_flags &= ~(IFF_DRV_RUNNING | IFF_DRV_OACTIVE);
ifp->if_timer = 0;
return(0);
}