diff options
author | Marcin Slusarz <marcin.slusarz@gmail.com> | 2008-05-12 16:42:43 -0500 |
---|---|---|
committer | Dave Kleikamp <shaggy@linux.vnet.ibm.com> | 2008-05-12 16:42:43 -0500 |
commit | 88f85a55c0645c2b7e03bf34d2a90eddf6de34fa (patch) | |
tree | 8b48475a55f000408aac7b52092aca44e77b66ed /fs/jfs/namei.c | |
parent | c714a534d85576af21b06be605ca55cb2fb887ee (diff) | |
download | talos-op-linux-88f85a55c0645c2b7e03bf34d2a90eddf6de34fa.tar.gz talos-op-linux-88f85a55c0645c2b7e03bf34d2a90eddf6de34fa.zip |
JFS: 0 is not valid errno value so return NULL from jfs_lookup
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>
Diffstat (limited to 'fs/jfs/namei.c')
-rw-r--r-- | fs/jfs/namei.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/jfs/namei.c b/fs/jfs/namei.c index 0ba6778edaa2..2aba82386810 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); |