summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_subr.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/vfs_subr.c')
-rw-r--r--sys/kern/vfs_subr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index 31ecb5b..631fa72 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -3553,7 +3553,7 @@ extattr_check_cred(struct vnode *vp, int attrnamespace,
/*
* Kernel-invoked always succeeds.
*/
- if (cred == NULL)
+ if (cred == NOCRED)
return (0);
/*
OpenPOWER on IntegriCloud