]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: avoid kmemcheck complaint from reading uninitialized memory
authorTheodore Ts'o <tytso@mit.edu>
Mon, 6 Aug 2012 03:28:16 +0000 (23:28 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 6 Aug 2012 03:28:16 +0000 (23:28 -0400)
commitf3c432591b62f25f8a6d8ac264b60c6068f25afb
tree1a9e6cee1227c1a6cbc4b172b789599a129d94d6
parent70546a8eb3b829830365fc7764b056bf0a8d0e78
ext4: avoid kmemcheck complaint from reading uninitialized memory

Commit 31eccd6644 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
fs/ext4/super.c