diff options
author | 2015-09-04 08:43:39 +0000 | |
---|---|---|
committer | 2015-09-04 08:43:39 +0000 | |
commit | 98afcbd27d8a7538288074151d5830fc811e2a3e (patch) | |
tree | 7ab16933669854af1bd63863f84f0f05c37622a7 /sys/kern/vfs_subr.c | |
parent | Plug minor memory leaks when options are used more than once. bz#2182, (diff) | |
download | wireguard-openbsd-98afcbd27d8a7538288074151d5830fc811e2a3e.tar.xz wireguard-openbsd-98afcbd27d8a7538288074151d5830fc811e2a3e.zip |
Make every subsystem using a radix tree call rn_init() and pass the
length of the key as argument.
This way every consumer of the radix tree has a chance to explicitly
initialize the shared data structures and no longer rely on another
subsystem to do the initialization.
As a bonus ``dom_maxrtkey'' is no longer used an die.
ART kernels should now be fully usable because pf(4) and IPSEC properly
initialized the radix tree.
ok chris@, reyk@
Diffstat (limited to 'sys/kern/vfs_subr.c')
-rw-r--r-- | sys/kern/vfs_subr.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index a3ab3ad90b9..6157a923ab2 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_subr.c,v 1.232 2015/07/16 18:17:27 claudio Exp $ */ +/* $OpenBSD: vfs_subr.c,v 1.233 2015/09/04 08:43:39 mpi Exp $ */ /* $NetBSD: vfs_subr.c,v 1.53 1996/04/22 01:39:13 christos Exp $ */ /* @@ -154,6 +154,8 @@ vntblinit(void) * Initialize the filesystem syncer. */ vn_initialize_syncerd(); + + rn_init(sizeof(struct sockaddr_in)); } /* |