From: Chaskiel M Grundman Date: Sun, 15 Mar 2009 18:13:36 +0000 (+0000) Subject: DEVEL15-solaris-avoid-returning-einval-if-possible-20090315 X-Git-Tag: openafs-devel-1_5_58~115 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=ab9a5082d39b33065f075331a06becff2335fd75;p=packages%2Fo%2Fopenafs.git DEVEL15-solaris-avoid-returning-einval-if-possible-20090315 LICENSE IPL10 FIXES 124426 if we have a better error code, return it. (cherry picked from commit 22c5edb1b22dbeee28b569ceefb543ab5ffed929) --- diff --git a/src/afs/SOLARIS/osi_vnodeops.c b/src/afs/SOLARIS/osi_vnodeops.c index 71db89933..ec02db85b 100644 --- a/src/afs/SOLARIS/osi_vnodeops.c +++ b/src/afs/SOLARIS/osi_vnodeops.c @@ -299,7 +299,7 @@ afs_GetOnePage(struct vnode *vp, u_int off, u_int alen, u_int *protp, else tdc = afs_GetDCache(avc, (afs_offs_t) off, &treq, &offset, &nlen, 1); if (!tdc) - return EINVAL; + return afs_CheckCode(EINVAL, &treq, 62); code = afs_VerifyVCache(avc, &treq); if (code) { afs_PutDCache(tdc);