]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
JFS: 0 is not valid errno value so return NULL from jfs_lookup
authorMarcin Slusarz <marcin.slusarz@gmail.com>
Mon, 12 May 2008 21:42:43 +0000 (16:42 -0500)
committerDave Kleikamp <shaggy@linux.vnet.ibm.com>
Mon, 12 May 2008 21:42:43 +0000 (16:42 -0500)
Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Signed-off-by: Dave Kleikamp <shaggy@linux.vnet.ibm.com>
Cc: jfs-discussion@lists.sourceforge.net
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
fs/jfs/namei.c

index 0ba6778edaa2ae73d9595d8f425c7d3e98dce7a7..2aba82386810591560890e91b02c8f62a4959bd3 100644 (file)
@@ -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);