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);
 }
 
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to