In vrele() we can actually have a VCHR with v_rdev == NULL if we

came from the bottom of addaliasu().  Don't panic.
This commit is contained in:
Poul-Henning Kamp 2002-10-25 07:58:25 +00:00
parent 7d5b77ef5f
commit 0d6dc414b4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=105914

View file

@ -1958,7 +1958,7 @@ static void
v_incr_usecount(struct vnode *vp, int delta)
{
vp->v_usecount += delta;
if (vp->v_type == VCHR) {
if (vp->v_type == VCHR && vp->v_rdev != NULL) {
mtx_lock(&spechash_mtx);
vp->v_rdev->si_usecount += delta;
mtx_unlock(&spechash_mtx);