From d7b66817a555ea0aea6d93bf029b442e4a74af50 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Sun, 2 Nov 2014 03:47:29 +0000 Subject: tmpfs free sizes --- sys/tmpfs/tmpfs_mem.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/tmpfs/tmpfs_mem.c') 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 -- cgit v1.2.3