JBD/JBD2: free j_wbuf if journal init fails.
authorTao Ma <tao.ma@oracle.com>
Tue, 10 Nov 2009 09:13:22 +0000 (17:13 +0800)
committerJan Kara <jack@suse.cz>
Wed, 11 Nov 2009 14:24:14 +0000 (15:24 +0100)
commit7b02bec07efe1d6c7d48c786e0c1a38d28fe7245
treecb93e26c107052be83ba52a74652c44c3ba199da
parentfe8bc91c4c30122b357d197117705cfd4fabaf28
JBD/JBD2: free j_wbuf if journal init fails.

If journal init fails, we need to free j_wbuf.

Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Jan Kara <jack@suse.cz>
Signed-off-by: Tao Ma <tao.ma@oracle.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/jbd/journal.c
fs/jbd2/journal.c