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:
4d3297c
)
9p: Add missing cast for the error return value in v9fs_get_inode
author
Abhishek Kulkarni
<adkulkar@umail.iu.edu>
Mon, 17 Aug 2009 21:32:18 +0000
(16:32 -0500)
committer
Eric Van Hensbergen
<ericvh@strongmad.austin.ibm.com>
Mon, 17 Aug 2009 21:35:08 +0000
(16:35 -0500)
Cast the error return value (ENOMEM) in v9fs_get_inode() to its
correct type using ERR_PTR.
Signed-off-by: Abhishek Kulkarni <adkulkar@umail.iu.edu>
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
fs/9p/vfs_inode.c
patch
|
blob
|
history
diff --git
a/fs/9p/vfs_inode.c
b/fs/9p/vfs_inode.c
index fac30d21851f51b78a96c22d3b3a99382de6e336..06a223d50a8165d908e738ff293f572a896c1bca 100644
(file)
--- a/
fs/9p/vfs_inode.c
+++ b/
fs/9p/vfs_inode.c
@@
-215,7
+215,7
@@
struct inode *v9fs_get_inode(struct super_block *sb, int mode)
inode = new_inode(sb);
if (!inode) {
P9_EPRINTK(KERN_WARNING, "Problem allocating inode\n");
- return
-ENOMEM
;
+ return
ERR_PTR(-ENOMEM)
;
}
inode->i_mode = mode;