ext4: Initialize the new group descriptor when resizing the filesystem
authorTheodore Ts'o <tytso@mit.edu>
Tue, 27 Jan 2009 00:06:41 +0000 (19:06 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 27 Jan 2009 00:06:41 +0000 (19:06 -0500)
commitfdff73f094e7220602cc3f8959c7230517976412
treeb58a1b26cdca223d588e6decee8198b6c3fe954e
parente7f07968c16bdd9480001c0a9de013ba56889cf9
ext4: Initialize the new group descriptor when resizing the filesystem

Make sure all of the fields of the group descriptor are properly
initialized.  Previously, we allowed bg_flags field to be contain
random garbage, which could trigger non-deterministic behavior,
including a kernel OOPS.

http://bugzilla.kernel.org/show_bug.cgi?id=12433

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Cc: stable@kernel.org
fs/ext4/resize.c