summaryrefslogtreecommitdiffstats
path: root/sys/tmpfs/tmpfs_mem.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/tmpfs/tmpfs_mem.c')
-rw-r--r--sys/tmpfs/tmpfs_mem.c4
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