From: Russ Allbery Date: Sat, 4 Apr 2009 19:18:41 +0000 (-0700) Subject: Imported Upstream version 1.4.10+dfsg1 X-Git-Tag: upstream/1.4.10+dfsg1 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=5007f622907c5ce74717350c99302007f22b1772;p=packages%2Fo%2Fopenafs.git Imported Upstream version 1.4.10+dfsg1 --- diff --git a/src/afs/LINUX/osi_vnodeops.c b/src/afs/LINUX/osi_vnodeops.c index 99e0672bd..bd3661acf 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);