]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ext4: add sanity check to ext4_get_group_info()
authorTheodore Ts'o <tytso@mit.edu>
Thu, 6 Jun 2013 15:16:43 +0000 (11:16 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 6 Jun 2013 15:16:43 +0000 (11:16 -0400)
commita3d5476c9ad7f3c7df0653de9461992209283b06
treef8ee7779589ae6b59524b58f053b32bc3cdda211
parent40c87e7a5404861cef33f6ced9809525a5ee2c50
ext4: add sanity check to ext4_get_group_info()

The group number passed to ext4_get_group_info() should be valid, but
let's add an assert to check this before we start creating a pointer
based on that group number and dereferencing it.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/ext4.h