Re: [PATCH 1/3] jbd2: fix potential double free

2019-05-09 Thread Jan Kara
On Wed 08-05-19 14:38:22, sunny.s.zhang wrote: > Hi Chengguang, > > 在 2019年05月05日 19:01, Chengguang Xu 写道: > > When fail from creating cache jbd2_inode_cache, we will > > destroy previously created cache jbd2_handle_cache twice. > > This patch fixes it by removing first destroy in error path. > >

Re: [PATCH 1/3] jbd2: fix potential double free

2019-05-08 Thread sunny.s.zhang
Hi Chengguang, 在 2019年05月05日 19:01, Chengguang Xu 写道: When fail from creating cache jbd2_inode_cache, we will destroy previously created cache jbd2_handle_cache twice. This patch fixes it by removing first destroy in error path. Signed-off-by: Chengguang Xu --- fs/jbd2/journal.c | 1 - 1

[PATCH 1/3] jbd2: fix potential double free

2019-05-05 Thread Chengguang Xu
When fail from creating cache jbd2_inode_cache, we will destroy previously created cache jbd2_handle_cache twice. This patch fixes it by removing first destroy in error path. Signed-off-by: Chengguang Xu --- fs/jbd2/journal.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/jbd2/journal.c