From: Russ Allbery Date: Wed, 27 May 2009 00:44:50 +0000 (+0000) Subject: STABLE14-linux-mmap-antirecursion-avoid-spurious-eio-20090526 X-Git-Tag: openafs-stable-1_4_11pre1~27 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=19d092daf69f441efc38fa248f213b0b87d387e3;p=packages%2Fo%2Fopenafs.git STABLE14-linux-mmap-antirecursion-avoid-spurious-eio-20090526 LICENSE IPL10 fix error code checking (cherry picked from commit 1fb1b8d0a2f82c6e72e59afb0a400ea0d5b21fe1) --- diff --git a/src/afs/LINUX/osi_vnodeops.c b/src/afs/LINUX/osi_vnodeops.c index 76bebd77e..3962fea9b 100644 --- a/src/afs/LINUX/osi_vnodeops.c +++ b/src/afs/LINUX/osi_vnodeops.c @@ -1091,7 +1091,7 @@ afs_linux_lookup(struct inode *dip, struct dentry *dp) #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,2,10) if (code == ENOENT) return ERR_PTR(0); - else if ((code > 0) && (code <= MAX_ERRNO)) + else if ((code >= 0) && (code <= MAX_ERRNO)) return ERR_PTR(-code); else return ERR_PTR(-EIO);