projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c714a53
)
JFS: 0 is not valid errno value so return NULL from jfs_lookup
author
Marcin Slusarz
<marcin.slusarz@gmail.com>
Mon, 12 May 2008 21:42:43 +0000
(16:42 -0500)
committer
Dave 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
patch
|
blob
|
history
diff --git
a/fs/jfs/namei.c
b/fs/jfs/namei.c
index 0ba6778edaa2ae73d9595d8f425c7d3e98dce7a7..2aba82386810591560890e91b02c8f62a4959bd3 100644
(file)
--- 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);