cache: add missing numcache detrement on insertion failure

This commit is contained in:
Mateusz Guzik 2020-08-04 19:52:52 +00:00
parent 3211e783e3
commit 0311b05fec
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=363855

View File

@ -2001,6 +2001,7 @@ cache_enter_time(struct vnode *dvp, struct vnode *vp, struct componentname *cnp,
return;
out_unlock_free:
cache_enter_unlock(&cel);
atomic_add_long(&numcache, -1);
cache_free(ncp);
return;
}