git://git.openafs.org
/
openafs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Do not try to increase the refcount of a NULL vnode
[openafs.git]
/
src
/
afs
/
afs_pioctl.c
diff --git
a/src/afs/afs_pioctl.c
b/src/afs/afs_pioctl.c
index
b17f425
..
0e170d9
100644
(file)
--- a/
src/afs/afs_pioctl.c
+++ b/
src/afs/afs_pioctl.c
@@
-1133,7
+1133,8
@@
afs_syscall_pioctl(char *path, unsigned int com, caddr_t cmarg, int follow)
#else
code = gop_lookupname_user(path, AFS_UIOUSER, follow, &vp);
#if defined(AFS_FBSD80_ENV) /* XXX check on 7x */
- VN_HOLD(vp);
+ if (vp != NULL)
+ VN_HOLD(vp);
#endif /* AFS_FBSD80_ENV */
#endif /* AFS_LINUX22_ENV */
#endif /* AFS_AIX41_ENV */