summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2002-04-14 10:18:48 +0000
committerjeff <jeff@FreeBSD.org>2002-04-14 10:18:48 +0000
commit9089f1baf84bd0b413bea2d19ab65f4a8c6600a6 (patch)
treeadd06e997f456b8effeabcfce5d8c2d6d5ac8ff1 /sys/kern
parentcf0cb2fed621e742b1489cadc592374f3b1f99ef (diff)
downloadFreeBSD-src-9089f1baf84bd0b413bea2d19ab65f4a8c6600a6.zip
FreeBSD-src-9089f1baf84bd0b413bea2d19ab65f4a8c6600a6.tar.gz
Use VOP_GETVOBJECT instead of accessing the member directly. This fixed
an issue with nullfs and NAMEI shared. Submitted by: Alexander Kabaev
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/vfs_vnops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/vfs_vnops.c b/sys/kern/vfs_vnops.c
index 3187a47..f286960 100644
--- a/sys/kern/vfs_vnops.c
+++ b/sys/kern/vfs_vnops.c
@@ -216,7 +216,7 @@ restart:
#ifndef LOOKUP_EXCLUSIVE
int flock;
- if (!exclusive && vp->v_object == NULL)
+ if (!exclusive && VOP_GETVOBJECT(vp, NULL) != 0)
VOP_LOCK(vp, LK_UPGRADE, td);
/*
* In cases where the object is marked as dead object_create
OpenPOWER on IntegriCloud