mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 23:10:58 +00:00
solaris-avoid-returning-einval-if-possible-20090315
LICENSE IPL10 FIXES 124426 if we have a better error code, return it.
This commit is contained in:
parent
fd9e5ffb46
commit
22c5edb1b2
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user