Author: bdrewery
Date: Thu Mar 24 04:40:07 2016
New Revision: 297223
URL: https://svnweb.freebsd.org/changeset/base/297223

Log:
  Pass the expected struct radix_node_head * to vfs_free_netcred.
  
  No functional change.
  
  struct radix_node_head's first element is rh so this was already
  referring to the same address.  It was likely an unintended
  s/rnh/&rnh->rh/ change from r294706 as all other rnh_walktree() callers
  pass the expected struct radix_node_head * rather than obscurely passing
  the address of their first element.
  
  Sponsored by: EMC / Isilon Storage Division

Modified:
  head/sys/kern/vfs_export.c

Modified: head/sys/kern/vfs_export.c
==============================================================================
--- head/sys/kern/vfs_export.c  Thu Mar 24 03:08:39 2016        (r297222)
+++ head/sys/kern/vfs_export.c  Thu Mar 24 04:40:07 2016        (r297223)
@@ -256,7 +256,7 @@ vfs_free_addrlist_af(struct radix_node_h
 
        rnh = *prnh;
        RADIX_NODE_HEAD_LOCK(rnh);
-       (*rnh->rnh_walktree)(&rnh->rh, vfs_free_netcred, &rnh->rh);
+       (*rnh->rnh_walktree)(&rnh->rh, vfs_free_netcred, rnh);
        RADIX_NODE_HEAD_UNLOCK(rnh);
        RADIX_NODE_HEAD_DESTROY(rnh);
        rn_detachhead((void **)prnh);
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to