aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2012-08-05 23:28:16 -0400
committerTheodore Ts'o <tytso@mit.edu>2012-08-05 23:28:16 -0400
commit7e731bc9a12339f344cddf82166b82633d99dd86 (patch)
tree1a9e6cee1227c1a6cbc4b172b789599a129d94d6 /fs
parentd796c52ef0b71a988364f6109aeb63d79c5b116b (diff)
ext4: avoid kmemcheck complaint from reading uninitialized memory
Commit 03179fe923 introduced a kmemcheck complaint in ext4_da_get_block_prep() because we save and restore ei->i_da_metadata_calc_last_lblock even though it is left uninitialized in the case where i_da_metadata_calc_len is zero. This doesn't hurt anything, but silencing the kmemcheck complaint makes it easier for people to find real bugs. Addresses https://bugzilla.kernel.org/show_bug.cgi?id=45631 (which is marked as a regression). Signed-off-by: "Theodore Ts'o" <tytso@mit.edu> Cc: stable@vger.kernel.org
Diffstat (limited to 'fs')
-rw-r--r--fs/ext4/super.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index ccc4bcad561..56bcaec9149 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -959,6 +959,7 @@ static struct inode *ext4_alloc_inode(struct super_block *sb)
959 ei->i_reserved_meta_blocks = 0; 959 ei->i_reserved_meta_blocks = 0;
960 ei->i_allocated_meta_blocks = 0; 960 ei->i_allocated_meta_blocks = 0;
961 ei->i_da_metadata_calc_len = 0; 961 ei->i_da_metadata_calc_len = 0;
962 ei->i_da_metadata_calc_last_lblock = 0;
962 spin_lock_init(&(ei->i_block_reservation_lock)); 963 spin_lock_init(&(ei->i_block_reservation_lock));
963#ifdef CONFIG_QUOTA 964#ifdef CONFIG_QUOTA
964 ei->i_reserved_quota = 0; 965 ei->i_reserved_quota = 0;