[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1248896942-13027-1-git-send-email-adkulkar@umail.iu.edu>
Date: Wed, 29 Jul 2009 13:49:01 -0600
From: Abhishek Kulkarni <adkulkar@...il.iu.edu>
To: v9fs-developer@...ts.sourceforge.net
Cc: linux-kernel@...r.kernel.org
Subject: [RESEND 1/2] 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@...il.iu.edu>
---
:100644 100644 fac30d2... 06a223d... M fs/9p/vfs_inode.c
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 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;
--
1.6.3.3
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists