From: Andrew Morton Date: Mon, 10 Jan 2011 17:30:17 +0000 (-0500) Subject: ext4: fix uninitialized variable in ext4_register_li_request X-Git-Tag: 2.1b_release~5880^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6c5a6cb998854f3c579ecb2bc1423d302bcb1b76;p=platform%2Fkernel%2Fkernel-mfld-blackbay.git ext4: fix uninitialized variable in ext4_register_li_request fs/ext4/super.c: In function 'ext4_register_li_request': fs/ext4/super.c:2936: warning: 'ret' may be used uninitialized in this function It looks buggy to me, too. Cc: Lukas Czerner Cc: stable@kernel.org Signed-off-by: Andrew Morton Signed-off-by: "Theodore Ts'o" --- diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 1cd4326..757cb24 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -2922,7 +2922,7 @@ static int ext4_register_li_request(struct super_block *sb, struct ext4_sb_info *sbi = EXT4_SB(sb); struct ext4_li_request *elr; ext4_group_t ngroups = EXT4_SB(sb)->s_groups_count; - int ret; + int ret = 0; if (sbi->s_li_request != NULL) return 0;