ext4: fix a bug accessing freed memory in ext4_abort
authorHidehiro Kawai <hidehiro.kawai.ez@hitachi.com>
Tue, 28 Oct 2008 02:53:05 +0000 (22:53 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 28 Oct 2008 02:53:05 +0000 (22:53 -0400)
commitef2cabf7c6d838eb0ee2b4fb8ef84f7c06ce16d9
tree64c3c14ae4a3717c6c193773d87e31f5facc569e
parent44d6f78756560e95903de239e10f8a40a6eae444
ext4: fix a bug accessing freed memory in ext4_abort

Vegard Nossum reported a bug which accesses freed memory (found via
kmemcheck).  When journal has been aborted, ext4_put_super() calls
ext4_abort() after freeing the journal_t object, and then ext4_abort()
accesses it.  This patch fix it.

Signed-off-by: Hidehiro Kawai <hidehiro.kawai.ez@hitachi.com>
Acked-by: Jan Kara <jack@suse.cz>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/super.c