diff options
author | Abhishek Kulkarni <adkulkar@umail.iu.edu> | 2009-08-17 17:32:18 -0400 |
---|---|---|
committer | Eric Van Hensbergen <ericvh@strongmad.austin.ibm.com> | 2009-08-17 17:35:08 -0400 |
commit | 48559b4c30708ebdc849483da9fb83ee08c6c908 (patch) | |
tree | 6e27e440ecc26f4d9c58f1a462cf81a513e0881f | |
parent | 4d3297ca5bf37ff5956f76fb352e009880aad62d (diff) |
9p: Add missing cast for the error return value in v9fs_get_inode
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>
-rw-r--r-- | fs/9p/vfs_inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/9p/vfs_inode.c b/fs/9p/vfs_inode.c index fac30d21851f..06a223d50a81 100644 --- 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) | |||
215 | inode = new_inode(sb); | 215 | inode = new_inode(sb); |
216 | if (!inode) { | 216 | if (!inode) { |
217 | P9_EPRINTK(KERN_WARNING, "Problem allocating inode\n"); | 217 | P9_EPRINTK(KERN_WARNING, "Problem allocating inode\n"); |
218 | return -ENOMEM; | 218 | return ERR_PTR(-ENOMEM); |
219 | } | 219 | } |
220 | 220 | ||
221 | inode->i_mode = mode; | 221 | inode->i_mode = mode; |