ext4: Fix use of uninitialized data with debug enabled. From: Aneesh Kumar K.V Fix use of uninitialized data with debug enabled. Signed-off-by: Aneesh Kumar K.V Signed-off-by: Mingming Cao --- fs/ext4/mballoc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) Index: linux-2.6.26-rc2/fs/ext4/mballoc.c =================================================================== --- linux-2.6.26-rc2.orig/fs/ext4/mballoc.c 2008-05-16 11:54:50.000000000 -0700 +++ linux-2.6.26-rc2/fs/ext4/mballoc.c 2008-05-16 11:54:54.000000000 -0700 @@ -2747,8 +2747,6 @@ ext4_mb_mark_diskspace_used(struct ext4_ sbi = EXT4_SB(sb); es = sbi->s_es; - ext4_debug("using block group %lu(%d)\n", ac->ac_b_ex.fe_group, - gdp->bg_free_blocks_count); err = -EIO; bitmap_bh = read_block_bitmap(sb, ac->ac_b_ex.fe_group); @@ -2764,6 +2762,9 @@ ext4_mb_mark_diskspace_used(struct ext4_ if (!gdp) goto out_err; + ext4_debug("using block group %lu(%d)\n", ac->ac_b_ex.fe_group, + gdp->bg_free_blocks_count); + err = ext4_journal_get_write_access(handle, gdp_bh); if (err) goto out_err; @@ -3096,8 +3097,7 @@ static void ext4_mb_use_inode_pa(struct static void ext4_mb_use_group_pa(struct ext4_allocation_context *ac, struct ext4_prealloc_space *pa) { - unsigned len = ac->ac_o_ex.fe_len; - + unsigned int len = ac->ac_o_ex.fe_len; ext4_get_group_no_and_offset(ac->ac_sb, pa->pa_pstart, &ac->ac_b_ex.fe_group, &ac->ac_b_ex.fe_start);