Author: zec Date: Wed Apr 15 18:15:29 2009 New Revision: 191112 URL: http://svn.freebsd.org/changeset/base/191112
Log: In the !VIMAGE_GLOBALS case, make sure not to call vnet_net_iattach() both via the vnet_mod_register() framework and then directly, but only once. Reviewed by: bz Approved by: julian (mentor) Modified: head/sys/net/if.c Modified: head/sys/net/if.c ============================================================================== --- head/sys/net/if.c Wed Apr 15 17:31:22 2009 (r191111) +++ head/sys/net/if.c Wed Apr 15 18:15:29 2009 (r191112) @@ -401,8 +401,9 @@ if_init(void *dummy __unused) #ifndef VIMAGE_GLOBALS vnet_mod_register(&vnet_net_modinfo); -#endif +#else vnet_net_iattach(NULL); +#endif IFNET_LOCK_INIT(); ifdev_setbyindex(0, make_dev(&net_cdevsw, 0, UID_ROOT, GID_WHEEL, _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"