Skip to content
Commit 833576b3 authored by Theodore Ts'o's avatar Theodore Ts'o
Browse files

ext4: Fix ext4_mb_initialize_context() to initialize all fields



Pavel Roskin pointed out that kmemcheck indicated that
ext4_mb_store_history() was accessing uninitialized values of
ac->ac_tail and ac->ac_buddy leading to garbage in the mballoc
history.  Fix this by initializing the entire structure to all zeros
first.

Also, two fields were getting doubly initialized by the caller of
ext4_mb_initialize_context, so remove them for efficiency's sake.

Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
parent ac046f1d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment