From 22c5edb1b22dbeee28b569ceefb543ab5ffed929 Mon Sep 17 00:00:00 2001 From: Chaskiel M Grundman Date: Sun, 15 Mar 2009 18:13:25 +0000 Subject: [PATCH] solaris-avoid-returning-einval-if-possible-20090315 LICENSE IPL10 FIXES 124426 if we have a better error code, return it. --- src/afs/SOLARIS/osi_vnodeops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/afs/SOLARIS/osi_vnodeops.c b/src/afs/SOLARIS/osi_vnodeops.c index 71db89933c..ec02db85bc 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);