mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-22 09:43:47 +00:00
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:
parent
7d5b77ef5f
commit
0d6dc414b4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=105914
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue