]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/jfs/namei.c
JFS: 0 is not valid errno value so return NULL from jfs_lookup
[linux-2.6-omap-h63xx.git] / 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);