Use VOP_GETVOBJECT instead of accessing the member directly. This fixed
an issue with nullfs and NAMEI shared. Submitted by: Alexander Kabaev
This commit is contained in:
parent
76dcc6cba9
commit
79a3e97054
@ -216,7 +216,7 @@ vn_open_cred(ndp, flagp, cmode, cred)
|
||||
#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
|
||||
|
Loading…
Reference in New Issue
Block a user