projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6ff9a9
)
befs: iget_locked() doesn't return an ERR_PTR
author
Rakesh Pandit
<rakesh@tuxera.com>
Wed, 15 Jan 2014 17:58:28 +0000
(19:58 +0200)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Sat, 25 Jan 2014 08:14:38 +0000
(
03:14
-0500)
Also fix befs_iget return value if iget_locked fails.
Signed-off-by: Rakesh Pandit <rakesh@tuxera.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/befs/linuxvfs.c
patch
|
blob
|
history
diff --git
a/fs/befs/linuxvfs.c
b/fs/befs/linuxvfs.c
index
daa15d6
..
845d2d6
100644
(file)
--- a/
fs/befs/linuxvfs.c
+++ b/
fs/befs/linuxvfs.c
@@
-324,8
+324,8
@@
static struct inode *befs_iget(struct super_block *sb, unsigned long ino)
befs_debug(sb, "---> befs_read_inode() " "inode = %lu", ino);
inode = iget_locked(sb, ino);
- if (
IS_ERR(inode)
)
- return
inode
;
+ if (
!inode
)
+ return
ERR_PTR(-ENOMEM)
;
if (!(inode->i_state & I_NEW))
return inode;