VIMAGE crashes on 9.x with hotplug net80211 devices

Marko Zec zec at fer.hr
Mon Oct 29 10:15:43 UTC 2012


On Sunday 28 October 2012 19:47:20 Adrian Chadd wrote:
> ping?
>
> Marko - would you be willing to add the if_free() vnet context setup into
> -HEAD?

Feel free to do it - though I'd suggest to use the CURVNET_SET_QUIET() 
variant there, to reduce the console spam with VNET_DEBUG.

Marko


Index: if.c
===================================================================
--- if.c        (revision 242304)
+++ if.c        (working copy)
@@ -513,7 +513,9 @@
 
        if (!refcount_release(&ifp->if_refcount))
                return;
+       CURVNET_SET_QUIET(ifp->if_vnet);
        if_free_internal(ifp);
+       CURVNET_RESTORE();
 }
 
 /*


More information about the freebsd-hackers mailing list