]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-linux-mmap-antirecursion-avoid-spurious-eio-20090526
authorRuss Allbery <rra@stanford.edu>
Wed, 27 May 2009 00:44:50 +0000 (00:44 +0000)
committerDerrick Brashear <shadow@dementia.org>
Wed, 27 May 2009 00:44:50 +0000 (00:44 +0000)
LICENSE IPL10

fix error code checking

(cherry picked from commit 1fb1b8d0a2f82c6e72e59afb0a400ea0d5b21fe1)

src/afs/LINUX/osi_vnodeops.c

index 76bebd77e2d7f953f4b5f9967f7670d069abe33e..3962fea9b2697f0ee192744e9bb2ab812ddb38c6 100644 (file)
@@ -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);