summaryrefslogtreecommitdiff
path: root/fs/9p
diff options
context:
space:
mode:
authorAbhishek Kulkarni <adkulkar@umail.iu.edu>2009-08-18 01:32:18 +0400
committerEric Van Hensbergen <ericvh@strongmad.austin.ibm.com>2009-08-18 01:35:08 +0400
commit48559b4c30708ebdc849483da9fb83ee08c6c908 (patch)
tree6e27e440ecc26f4d9c58f1a462cf81a513e0881f /fs/9p
parent4d3297ca5bf37ff5956f76fb352e009880aad62d (diff)
downloadlinux-48559b4c30708ebdc849483da9fb83ee08c6c908.tar.xz
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>
Diffstat (limited to 'fs/9p')
-rw-r--r--fs/9p/vfs_inode.c2
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)
inode = new_inode(sb);
if (!inode) {
P9_EPRINTK(KERN_WARNING, "Problem allocating inode\n");
- return -ENOMEM;
+ return ERR_PTR(-ENOMEM);
}
inode->i_mode = mode;