[PATCH 5/6] JFS: 0 is not valid errno value so return NULL from jfs_lookup

[email protected] Tue, 13 May 2008 09:49:52 -0500 (CDT)
Newsgroups gmane.comp.file-systems.jfs.patches
Message-ID <[email protected]>
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]>

---
commit 88f85a55c0645c2b7e03bf34d2a90eddf6de34fa
tree 8b48475a55f000408aac7b52092aca44e77b66ed
parent c714a534d85576af21b06be605ca55cb2fb887ee
author Marcin Slusarz <[email protected]> Mon, 12 May 2008 16:42:43 -0500
committer Dave Kleikamp <[email protected]> Mon, 12 May 2008 16:42:43 -0500

 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 0ba6778..2aba823 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);

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/