From: Chaskiel M Grundman Date: Sun, 15 Mar 2009 18:13:55 +0000 (+0000) Subject: STABLE14-solaris-avoid-returning-einval-if-possible-20090315 X-Git-Tag: openafs-stable-1_4_9pre1~31 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=c943130b7f3bdde99951ba87abe6aab70cc419aa;p=packages%2Fo%2Fopenafs.git STABLE14-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 c3e7007cb..ef89c84a8 100644 --- a/src/afs/SOLARIS/osi_vnodeops.c +++ b/src/afs/SOLARIS/osi_vnodeops.c @@ -363,7 +363,7 @@ afs_GetOnePage(vp, off, alen, protp, pl, plsz, seg, addr, rw, acred) 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);