From: Marcin Slusarz Date: Mon, 12 May 2008 21:42:43 +0000 (-0500) Subject: JFS: 0 is not valid errno value so return NULL from jfs_lookup X-Git-Tag: v2.6.27-rc1~1079^2~4 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88f85a55c0645c2b7e03bf34d2a90eddf6de34fa;p=linux-2.6 JFS: 0 is not valid errno value so return NULL from jfs_lookup Signed-off-by: Marcin Slusarz Signed-off-by: Dave Kleikamp Cc: jfs-discussion@lists.sourceforge.net Cc: Alexander Viro --- diff --git a/fs/jfs/namei.c b/fs/jfs/namei.c index 0ba6778eda..2aba823868 100644 --- a/fs/jfs/namei.c +++ b/fs/jfs/namei.c @@ -1455,7 +1455,7 @@ static struct dentry *jfs_lookup(struct inode *dip, struct dentry *dentry, struc free_UCSname(&key); if (rc == -ENOENT) { d_add(dentry, NULL); - return ERR_PTR(0); + return NULL; } else if (rc) { jfs_err("jfs_lookup: dtSearch returned %d", rc); return ERR_PTR(rc);