diff options
author | bp <bp@FreeBSD.org> | 2000-07-13 02:17:14 +0000 |
---|---|---|
committer | bp <bp@FreeBSD.org> | 2000-07-13 02:17:14 +0000 |
commit | c956469da1a8f1493c62197b61a26c970e184210 (patch) | |
tree | 569045b310844187274f45145307712a6a3d9828 /sys/ufs | |
parent | 7b33546c33912ff990f0664070a3114966cdd4bd (diff) | |
download | FreeBSD-src-c956469da1a8f1493c62197b61a26c970e184210.zip FreeBSD-src-c956469da1a8f1493c62197b61a26c970e184210.tar.gz |
Prevent possible dereference of NULL pointer.
Submitted by: Marius Bendiksen <mbendiks@eunet.no>
Diffstat (limited to 'sys/ufs')
-rw-r--r-- | sys/ufs/ffs/ffs_vfsops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ufs/ffs/ffs_vfsops.c b/sys/ufs/ffs/ffs_vfsops.c index 5280181..cf0e220 100644 --- a/sys/ufs/ffs/ffs_vfsops.c +++ b/sys/ufs/ffs/ffs_vfsops.c @@ -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); } |