From 743dc61d13a1a62333303449446c57ddf87a2a57 Mon Sep 17 00:00:00 2001 From: ru Date: Wed, 14 Sep 2005 10:28:01 +0000 Subject: [PATCH] Fix "Memory modified after free" panic on detach, caused by accessing already freed struct ifnet. --- sys/dev/em/if_em.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/sys/dev/em/if_em.c b/sys/dev/em/if_em.c index c41c38edd25c..9d98158454f1 100644 --- a/sys/dev/em/if_em.c +++ b/sys/dev/em/if_em.c @@ -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); }