DEVEL15-linux-mmap-antirecursion-avoid-spurious-eio-20090526
[openafs.git] / src / afs / LINUX / osi_vnodeops.c
index 94c3ddc..557129b 100644 (file)
@@ -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);