summaryrefslogtreecommitdiff
path: root/sys/tmpfs/tmpfs_mem.c
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2014-11-02 03:47:29 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2014-11-02 03:47:29 +0000
commitd7b66817a555ea0aea6d93bf029b442e4a74af50 (patch)
treeebeac457bb5e4c3da6f04064bf2178c195962435 /sys/tmpfs/tmpfs_mem.c
parent990c736d55316ca70b9006703818098db951d644 (diff)
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