diff options
author | 2015-12-11 22:34:34 +0000 | |
---|---|---|
committer | 2015-12-11 22:34:34 +0000 | |
commit | 6eefdf9f5856092cb525eeecba307869e8fd6234 (patch) | |
tree | 77cdd4d40d77452a29cc9127e2c9613b2c633406 | |
parent | Add '-v' flag that forces the display of both GPT's and the MBR. (diff) | |
download | wireguard-openbsd-6eefdf9f5856092cb525eeecba307869e8fd6234.tar.xz wireguard-openbsd-6eefdf9f5856092cb525eeecba307869e8fd6234.zip |
fix nde structure initialization, noticed in netbsd pr 50381 by mmcc@
by ensuring the structure is zeroed when allocated from the pool
ok mmcc@, stsp@
-rw-r--r-- | sys/tmpfs/tmpfs_mem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/tmpfs/tmpfs_mem.c b/sys/tmpfs/tmpfs_mem.c index aaa321d9570..3471de191b3 100644 --- a/sys/tmpfs/tmpfs_mem.c +++ b/sys/tmpfs/tmpfs_mem.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tmpfs_mem.c,v 1.7 2015/03/14 03:38:52 jsg Exp $ */ +/* $OpenBSD: tmpfs_mem.c,v 1.8 2015/12/11 22:34:34 beck Exp $ */ /* $NetBSD: tmpfs_mem.c,v 1.4 2011/05/24 01:09:47 rmind Exp $ */ /* @@ -151,7 +151,7 @@ tmpfs_dirent_get(struct tmpfs_mount *mp) if (!tmpfs_mem_incr(mp, sizeof(struct tmpfs_dirent))) { return NULL; } - return pool_get(&tmpfs_dirent_pool, PR_WAITOK); + return pool_get(&tmpfs_dirent_pool, PR_ZERO|PR_WAITOK); } void |