Author: mjg
Date: Thu Aug 27 06:30:40 2020
New Revision: 364856
URL: https://svnweb.freebsd.org/changeset/base/364856

Log:
  cache: ncp = NULL early to account for sdt probes in ailure path
  
  CID:  1432106

Modified:
  head/sys/kern/vfs_cache.c

Modified: head/sys/kern/vfs_cache.c
==============================================================================
--- head/sys/kern/vfs_cache.c   Thu Aug 27 05:11:15 2020        (r364855)
+++ head/sys/kern/vfs_cache.c   Thu Aug 27 06:30:40 2020        (r364856)
@@ -2938,6 +2938,7 @@ vn_fullpath_any_smr(struct vnode *vp, struct vnode *rd
        i = 0;
 #endif
        error = -1;
+       ncp = NULL; /* for sdt probe down below */
        vp_seqc = vn_seqc_read_any(vp);
        if (seqc_in_modify(vp_seqc)) {
                cache_rev_failed(&reason);
_______________________________________________
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