diff options
author | Theodore Ts'o <tytso@mit.edu> | 2012-08-05 23:28:16 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-08-26 18:12:11 -0400 |
commit | b1aa47aec9ca0de65c67d811c291153503972a08 (patch) | |
tree | 5554ae3600b7ad25c800e5e17e2c852402a72f01 /fs | |
parent | f5a5aa3a1f996962d9a2a9fe0bb2c096a8b06f37 (diff) |
ext4: avoid kmemcheck complaint from reading uninitialized memory
commit 7e731bc9a12339f344cddf82166b82633d99dd86 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ext4/super.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 113b1076844..489d406c0d7 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c | |||
@@ -860,6 +860,7 @@ static struct inode *ext4_alloc_inode(struct super_block *sb) | |||
860 | ei->i_reserved_meta_blocks = 0; | 860 | ei->i_reserved_meta_blocks = 0; |
861 | ei->i_allocated_meta_blocks = 0; | 861 | ei->i_allocated_meta_blocks = 0; |
862 | ei->i_da_metadata_calc_len = 0; | 862 | ei->i_da_metadata_calc_len = 0; |
863 | ei->i_da_metadata_calc_last_lblock = 0; | ||
863 | spin_lock_init(&(ei->i_block_reservation_lock)); | 864 | spin_lock_init(&(ei->i_block_reservation_lock)); |
864 | #ifdef CONFIG_QUOTA | 865 | #ifdef CONFIG_QUOTA |
865 | ei->i_reserved_quota = 0; | 866 | ei->i_reserved_quota = 0; |