linux-stable/fs/jbd2
Chengguang Xu 5b85676824 jbd2: fix potential double free
commit 0d52154bb0 upstream.

When failing from creating cache jbd2_inode_cache, we will destroy the
previously created cache jbd2_handle_cache twice.  This patch fixes
this by moving each cache initialization/destruction to its own
separate, individual function.

Signed-off-by: Chengguang Xu <cgxu519@gmail.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-05-22 07:37:44 +02:00
..
checkpoint.c
commit.c jbd2: fix invalid descriptor block checksum 2019-04-05 22:33:00 +02:00
journal.c jbd2: fix potential double free 2019-05-22 07:37:44 +02:00
Kconfig
Makefile
recovery.c
revoke.c jbd2: fix potential double free 2019-05-22 07:37:44 +02:00
transaction.c jbd2: fix potential double free 2019-05-22 07:37:44 +02:00