ext2: Zero our b_size in ext2_quota_read()
authorManish Katiyar <mkatiyar@gmail.com>
Thu, 12 Feb 2009 20:57:04 +0000 (21:57 +0100)
committerJan Kara <jack@suse.cz>
Thu, 26 Mar 2009 01:18:38 +0000 (02:18 +0100)
commitc16831b4cc9b0805adf8ca3001752a7ec10a17bf
tree09e727619e61f9531c879e907eb37f0735cf6f79
parent620372a9ffc6f1239a4f379ff145de9e4b5d23ba
ext2: Zero our b_size in ext2_quota_read()

ext2_quota_read() doesn't initialize tmp_bh.b_size before calling
ext2_get_block() where we access it. Since it is a local variable it
might contain some garbage. Make sure it is filled with reasonable
value before passing.

Signed-off-by: Manish Katiyar <mkatiyar@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/ext2/super.c