summaryrefslogtreecommitdiffstats
path: root/sys/tmpfs/tmpfs_mem.c
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2014-11-02 03:47:28 +0000
committertedu <tedu@openbsd.org>2014-11-02 03:47:28 +0000
commit37742db100057ab1564c14f3b3323004de4c52e8 (patch)
treee7dbd9737cc1643d68579a2888ca2236a6904c1c /sys/tmpfs/tmpfs_mem.c
parentunnecessary malloc.h include (diff)
downloadwireguard-openbsd-37742db100057ab1564c14f3b3323004de4c52e8.tar.xz
wireguard-openbsd-37742db100057ab1564c14f3b3323004de4c52e8.zip
tmpfs free sizes
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 89a827d034d..8d902b9cb0f 100644
--- a/sys/tmpfs/tmpfs_mem.c
+++ b/sys/tmpfs/tmpfs_mem.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tmpfs_mem.c,v 1.4 2014/07/12 18:50:25 tedu Exp $ */
+/* $OpenBSD: tmpfs_mem.c,v 1.5 2014/11/02 03:47:28 tedu Exp $ */
/* $NetBSD: tmpfs_mem.c,v 1.4 2011/05/24 01:09:47 rmind Exp $ */
/*
@@ -218,7 +218,7 @@ tmpfs_strname_free(struct tmpfs_mount *mp, char *str, size_t len)
KASSERT(sz > 0 && sz <= 1024);
tmpfs_mem_decr(mp, sz);
- free(str, M_TEMP, 0);
+ free(str, M_TEMP, sz);
}
int