mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 23:10:58 +00:00
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:
parent
3f4db030a6
commit
c943130b7f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user