JFS: 0 is not valid errno value so return NULL from jfs_lookup

Signed-off-by: Marcin Slusarz <[email protected]>
Signed-off-by: Dave Kleikamp <[email protected]>
Cc: [email protected]
Cc: Alexander Viro <[email protected]>
This commit is contained in:
Marcin Slusarz 2008-05-12 16:42:43 -05:00 • committed by Dave Kleikamp
commit 88f85a55c0

View 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);