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)
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>

No differences found