cache: assert the created entry does not point to itself
This commit is contained in:
parent
1f57220934
commit
54f09403a3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=366948
@ -2104,6 +2104,7 @@ cache_enter_time(struct vnode *dvp, struct vnode *vp, struct componentname *cnp,
|
||||
int len;
|
||||
u_long lnumcache;
|
||||
|
||||
VNPASS(dvp != vp, dvp);
|
||||
VNPASS(!VN_IS_DOOMED(dvp), dvp);
|
||||
VNPASS(dvp->v_type != VNON, dvp);
|
||||
if (vp != NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user