1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-05 09:14:03 +00:00

Prevent possible dereference of NULL pointer.

Submitted by:	Marius Bendiksen <mbendiks@eunet.no>
This commit is contained in:
Boris Popov 2000-07-13 02:17:14 +00:00
parent 9c386f6b7d
commit 3fbd97427e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=63059

View File

@ -550,7 +550,7 @@ ffs_mountfs(devvp, mp, p, malloctype)
*/
if (devvp->v_tag != VT_MFS && vn_isdisk(devvp, NULL)) {
vn_lock(devvp, LK_EXCLUSIVE | LK_RETRY, p);
vfs_object_create(devvp, p, p->p_ucred);
vfs_object_create(devvp, p, cred);
simple_lock(&devvp->v_interlock);
VOP_UNLOCK(devvp, LK_INTERLOCK, p);
}