Fix "Memory modified after free" panic on detach, caused by accessing
already freed struct ifnet.
This commit is contained in:
parent
0e68690fab
commit
743dc61d13
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user