]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Imported Upstream version 1.4.10+dfsg1 upstream/1.4.10+dfsg1
authorRuss Allbery <rra@debian.org>
Sat, 4 Apr 2009 19:18:41 +0000 (12:18 -0700)
committerRuss Allbery <rra@debian.org>
Sat, 4 Apr 2009 19:18:41 +0000 (12:18 -0700)
src/afs/LINUX/osi_vnodeops.c

index 99e0672bd3a8e680e5c6f48d72f52299f1780201..bd3661acf37e97b804458d4de9bb4399f873d496 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);