1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00

Do not derefer null.

Reviewed by:	des
This commit is contained in:
Seigo Tanimura 2002-01-04 01:03:46 +00:00
parent cd3aa54df0
commit 233beff278
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=88868

View File

@ -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);