ext4: verify group number in verify_group_input() before using it
authorTheodore Ts'o <tytso@mit.edu>
Thu, 6 Jun 2013 15:14:31 +0000 (11:14 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 6 Jun 2013 15:14:31 +0000 (11:14 -0400)
commitb302ef2d3c73d8a07ed2f0679ce35f00b6dcacef
tree5f784603fc3e63c46310ce2509466e7dced2586d
parenta1d8d9a757cd46e044a3f6061c315eda14bf697e
ext4: verify group number in verify_group_input() before using it

Check the group number for sanity earilier, before calling routines
such as ext4_bg_has_super() or ext4_group_overhead_blocks().

Reported-by: Jonathan Salwan <jonathan.salwan@gmail.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/resize.c