diff options
author | zec <zec@FreeBSD.org> | 2009-04-15 18:15:29 +0000 |
---|---|---|
committer | zec <zec@FreeBSD.org> | 2009-04-15 18:15:29 +0000 |
commit | 8b0141432f842f7dfea13aea8bf1346a437b0e35 (patch) | |
tree | 19cf82460b91d6126340201a195ade5fb5de38fd /sys/net/if.c | |
parent | e8cee11d8da15a3ce5f89e6ccbfb680794814d57 (diff) | |
download | FreeBSD-src-8b0141432f842f7dfea13aea8bf1346a437b0e35.zip FreeBSD-src-8b0141432f842f7dfea13aea8bf1346a437b0e35.tar.gz |
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)
Diffstat (limited to 'sys/net/if.c')
-rw-r--r-- | sys/net/if.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/if.c b/sys/net/if.c index e06881b..f271929 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -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, |