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 22c5edb1b2)
This commit is contained in:
Chaskiel M Grundman 2009-03-15 18:13:55 +00:00 committed by Derrick Brashear
parent 3f4db030a6
commit c943130b7f

View File

@ -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);