[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20071027144745.GF2506@hacking>
Date: Sat, 27 Oct 2007 22:47:45 +0800
From: WANG Cong <xiyou.wangcong@...il.com>
To: Adrian Bunk <bunk@...nel.org>
Cc: KaiGai Kohei <kaigai@...jp.nec.com>,
David Woodhouse <dwmw2@...radead.org>, jffs-dev@...s.com,
linux-kernel@...r.kernel.org
Subject: [Git Patch]fs/jffs2/acl.c: Fix a may-be-uninitialized return value
Fix a may-be-uninitialized return value.
Found-by: Adrian Bunk <bunk@...nel.org>
Signed-off-by: WANG Cong <xiyou.wangcong@...il.com>
---
fs/jffs2/acl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/jffs2/acl.c b/fs/jffs2/acl.c
index 9728614..5b14062 100644
--- a/fs/jffs2/acl.c
+++ b/fs/jffs2/acl.c
@@ -358,7 +358,7 @@ int jffs2_init_acl_pre(struct inode *dir_i, struct inode *inode, int *i_mode)
int jffs2_init_acl_post(struct inode *inode)
{
struct jffs2_inode_info *f = JFFS2_INODE_INFO(inode);
- int rc;
+ int rc = 0;
if (f->i_acl_default) {
rc = __jffs2_set_acl(inode, JFFS2_XPREFIX_ACL_DEFAULT, f->i_acl_default);
--
May the Source Be With You.
-
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