summaryrefslogtreecommitdiffstats
path: root/sys/fs
diff options
context:
space:
mode:
authorrea <rea@FreeBSD.org>2012-01-18 11:23:46 +0000
committerrea <rea@FreeBSD.org>2012-01-18 11:23:46 +0000
commit558e00899f503030ca666d0256ca046be1451484 (patch)
tree89ec37d2b61bcbaa4ae3d2265ef08f6a694effd8 /sys/fs
parent5dd4b201f5117af2156d2922af5df1cc070421d3 (diff)
downloadFreeBSD-src-558e00899f503030ca666d0256ca046be1451484.zip
FreeBSD-src-558e00899f503030ca666d0256ca046be1451484.tar.gz
Subject: NULLFS: properly destroy node hash
Use hashdestroy() instead of naive free(). Approved by: kib MFC after: 2 weeks
Diffstat (limited to 'sys/fs')
-rw-r--r--sys/fs/nullfs/null_subr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/nullfs/null_subr.c b/sys/fs/nullfs/null_subr.c
index 319e404..aea98f3 100644
--- a/sys/fs/nullfs/null_subr.c
+++ b/sys/fs/nullfs/null_subr.c
@@ -90,7 +90,7 @@ nullfs_uninit(vfsp)
{
mtx_destroy(&null_hashmtx);
- free(null_node_hashtbl, M_NULLFSHASH);
+ hashdestroy(null_node_hashtbl, M_NULLFSHASH, null_node_hash);
return (0);
}
OpenPOWER on IntegriCloud