summaryrefslogtreecommitdiffstats
path: root/fs/9p
diff options
context:
space:
mode:
authorAbhishek Kulkarni <adkulkar@umail.iu.edu>2009-08-17 16:32:18 -0500
committerEric Van Hensbergen <ericvh@strongmad.austin.ibm.com>2009-08-17 16:35:08 -0500
commit48559b4c30708ebdc849483da9fb83ee08c6c908 (patch)
tree6e27e440ecc26f4d9c58f1a462cf81a513e0881f /fs/9p
parent4d3297ca5bf37ff5956f76fb352e009880aad62d (diff)
downloadop-kernel-dev-48559b4c30708ebdc849483da9fb83ee08c6c908.zip
op-kernel-dev-48559b4c30708ebdc849483da9fb83ee08c6c908.tar.gz
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 fac30d2..06a223d 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;
OpenPOWER on IntegriCloud