ext3: fix a bug accessing freed memory in ext3_abort
authorHidehiro Kawai <hidehiro.kawai.ez@hitachi.com>
Tue, 28 Oct 2008 02:51:46 +0000 (22:51 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 28 Oct 2008 02:51:46 +0000 (22:51 -0400)
Vegard Nossum reported a bug which accesses freed memory (found via
kmemcheck).  When journal has been aborted, ext3_put_super() calls
ext3_abort() after freeing the journal_t object, and then ext3_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>

No differences found