From 19d092daf69f441efc38fa248f213b0b87d387e3 Mon Sep 17 00:00:00 2001 From: Russ Allbery Date: Wed, 27 May 2009 00:44:50 +0000 Subject: [PATCH] STABLE14-linux-mmap-antirecursion-avoid-spurious-eio-20090526 LICENSE IPL10 fix error code checking (cherry picked from commit 1fb1b8d0a2f82c6e72e59afb0a400ea0d5b21fe1) --- src/afs/LINUX/osi_vnodeops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5