[Git Patch]fs/jffs2/acl.c: Fix a may-be-uninitialized return value
WANG Cong <[email protected]> Sat, 27 Oct 2007 22:47:45 +0800
| Newsgroups | gmane.linux.kernel,gmane.linux.file-systems.jffs |
|---|---|
| Message-ID | <20071027144745.GF2506@hacking> |
Fix a may-be-uninitialized return value. Found-by: Adrian Bunk <[email protected]> Signed-off-by: WANG Cong <[email protected]> --- 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.