From: Russ Allbery Date: Wed, 27 May 2009 00:44:39 +0000 (+0000) Subject: DEVEL15-linux-mmap-antirecursion-avoid-spurious-eio-20090526 X-Git-Tag: openafs-devel-1_5_60~15 X-Git-Url: http://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=f021b9ccd985f852ce50af83bb89ffc34ec5dacc DEVEL15-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 94c3ddc..557129b 100644 --- a/src/afs/LINUX/osi_vnodeops.c +++ b/src/afs/LINUX/osi_vnodeops.c @@ -1188,7 +1188,7 @@ afs_linux_lookup(struct inode *dip, struct dentry *dp) if (code == ENOENT) return ERR_PTR(0); #endif - else if ((code > 0) && (code <= MAX_ERRNO)) + else if ((code >= 0) && (code <= MAX_ERRNO)) return ERR_PTR(-code); else return ERR_PTR(-EIO);