summaryrefslogtreecommitdiffstats
path: root/sys/tmpfs/tmpfs_vfsops.c
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2014-07-12 18:50:25 +0000
committertedu <tedu@openbsd.org>2014-07-12 18:50:25 +0000
commit5dc5a81e986b601d8ab1c1db5a736a0865bc250e (patch)
tree4c805eb21cfcf2c046bf4f0a0bbb4797241fe3b6 /sys/tmpfs/tmpfs_vfsops.c
parentadd a size argument to free. will be used soon, but for now default to 0. (diff)
downloadwireguard-openbsd-5dc5a81e986b601d8ab1c1db5a736a0865bc250e.tar.xz
wireguard-openbsd-5dc5a81e986b601d8ab1c1db5a736a0865bc250e.zip
add a size argument to free. will be used soon, but for now default to 0.
after discussions with beck deraadt kettenis.
Diffstat (limited to 'sys/tmpfs/tmpfs_vfsops.c')
-rw-r--r--sys/tmpfs/tmpfs_vfsops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/tmpfs/tmpfs_vfsops.c b/sys/tmpfs/tmpfs_vfsops.c
index faf8e36192b..32ea53886df 100644
--- a/sys/tmpfs/tmpfs_vfsops.c
+++ b/sys/tmpfs/tmpfs_vfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tmpfs_vfsops.c,v 1.3 2013/12/14 18:01:52 espie Exp $ */
+/* $OpenBSD: tmpfs_vfsops.c,v 1.4 2014/07/12 18:50:25 tedu Exp $ */
/* $NetBSD: tmpfs_vfsops.c,v 1.52 2011/09/27 01:10:43 christos Exp $ */
/*
@@ -255,7 +255,7 @@ tmpfs_unmount(struct mount *mp, int mntflags, struct proc *p)
tmpfs_mntmem_destroy(tmp);
/* mutex_destroy(&tmp->tm_lock); */
/* kmem_free(tmp, sizeof(*tmp)); */
- free(tmp, M_MISCFSMNT);
+ free(tmp, M_MISCFSMNT, 0);
mp->mnt_data = NULL;
return 0;