Re: current panics when Netgear WG511T ejected
- From: "Bruce M. Simpson" <bms@xxxxxxxxxxx>
- Date: Mon, 26 Mar 2007 17:25:14 +0100
Please try this patch.
Regards,
BMS
==== //depot/user/bms/netdev/sys/net/if.c#10 - /home/bms/p4/netdev/sys/net/if.c ====
--- /tmp/tmp.1084.0 Mon Mar 26 17:18:47 2007
+++ /home/bms/p4/netdev/sys/net/if.c Mon Mar 26 17:18:33 2007
@@ -2513,19 +2513,19 @@
* If the ifnet is detaching, null out references to ifnet,
* so that upper protocol layers will notice, and not attempt
* to obtain locks for an ifnet which no longer exists.
- * It is OK to call rt_newmaddrmsg() with a NULL ifp.
+ * XXX: rt_newaddrmsg() needs to be called before the ifnet instance
+ * is detached from the system interface list.
*/
if (detaching) {
#ifdef DIAGNOSTIC
printf("%s: detaching ifnet instance %p\n", __func__, ifp);
#endif
+ rt_newmaddrmsg(RTM_DELMADDR, ifma);
ifma->ifma_ifp = NULL;
}
if (--ifma->ifma_refcount > 0)
return 0;
-
- rt_newmaddrmsg(RTM_DELMADDR, ifma);
/*
* If this ifma is a network-layer ifma, a link-layer ifma may
_______________________________________________
freebsd-current@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@xxxxxxxxxxx"
- Follow-Ups:
- Re: current panics when Netgear WG511T ejected
- From: Tom Uffner
- Re: current panics when Netgear WG511T ejected
- References:
- current panics when Netgear WG511T ejected
- From: Tom Uffner
- current panics when Netgear WG511T ejected
- Prev by Date: Re: Improved INCLUDE_CONFIG_FILE
- Next by Date: Re: Improved INCLUDE_CONFIG_FILE
- Previous by thread: current panics when Netgear WG511T ejected
- Next by thread: Re: current panics when Netgear WG511T ejected
- Index(es):