svn commit: r230304 - head/sys/fs/nullfs

Eygene Ryabinkin rea at FreeBSD.org
Wed Jan 18 11:23:47 UTC 2012


Author: rea (ports committer)
Date: Wed Jan 18 11:23:46 2012
New Revision: 230304
URL: http://svn.freebsd.org/changeset/base/230304

Log:
  Subject: NULLFS: properly destroy node hash
  
  Use hashdestroy() instead of naive free().
  
  Approved by:	kib
  MFC after:	2 weeks

Modified:
  head/sys/fs/nullfs/null_subr.c

Modified: head/sys/fs/nullfs/null_subr.c
==============================================================================
--- head/sys/fs/nullfs/null_subr.c	Wed Jan 18 08:56:26 2012	(r230303)
+++ head/sys/fs/nullfs/null_subr.c	Wed Jan 18 11:23:46 2012	(r230304)
@@ -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);
 }
 


More information about the svn-src-all mailing list