svn commit: r191112 - head/sys/net

Marko Zec zec at FreeBSD.org
Wed Apr 15 18:15:30 UTC 2009


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,


More information about the svn-src-head mailing list