diff --git a/src/afs/LINUX/osi_vnodeops.c b/src/afs/LINUX/osi_vnodeops.c index 83a5ab0e66..9f35ca7fca 100644 --- a/src/afs/LINUX/osi_vnodeops.c +++ b/src/afs/LINUX/osi_vnodeops.c @@ -2171,7 +2171,10 @@ afs_linux_writepage(struct page *pp) /* Grab the creds structure currently held in the vnode, and * get a reference to it, in case it goes away ... */ credp = vcp->cred; - crhold(credp); + if (credp) + crhold(credp); + else + credp = crref(); ReleaseWriteLock(&vcp->lock); AFS_GUNLOCK();