Do not derefer null.
Reviewed by: des
This commit is contained in:
parent
7a456d7a1e
commit
bc1c5ca721
@ -221,6 +221,8 @@ pfs_exit(struct proc *p)
|
||||
vgone(pvd->pvd_vnode);
|
||||
pvd = prev ? prev->pvd_next : pfs_vncache;
|
||||
}
|
||||
if (pvd == NULL)
|
||||
break;
|
||||
}
|
||||
mtx_unlock(&pfs_vncache_mutex);
|
||||
}
|
||||
@ -245,6 +247,8 @@ pfs_disable(struct pfs_node *pn)
|
||||
vgone(pvd->pvd_vnode);
|
||||
pvd = prev ? prev->pvd_next : pfs_vncache;
|
||||
}
|
||||
if (pvd == NULL)
|
||||
break;
|
||||
}
|
||||
mtx_unlock(&pfs_vncache_mutex);
|
||||
return (0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user