Author: mjg Date: Thu Oct 22 19:22:34 2020 New Revision: 366948 URL: https://svnweb.freebsd.org/changeset/base/366948
Log: cache: assert the created entry does not point to itself Modified: head/sys/kern/vfs_cache.c Modified: head/sys/kern/vfs_cache.c ============================================================================== --- head/sys/kern/vfs_cache.c Thu Oct 22 19:19:42 2020 (r366947) +++ head/sys/kern/vfs_cache.c Thu Oct 22 19:22:34 2020 (r366948) @@ -2104,6 +2104,7 @@ cache_enter_time(struct vnode *dvp, struct vnode *vp, int len; u_long lnumcache; + VNPASS(dvp != vp, dvp); VNPASS(!VN_IS_DOOMED(dvp), dvp); VNPASS(dvp->v_type != VNON, dvp); if (vp != NULL) { _______________________________________________ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"