Re: [f2fs-dev] [PATCH] f2fs: avoid to use a NULL point in destroy_segment_manager

2013-11-05 Thread Chao Yu
.org; > linux-f2fs-devel@lists.sourceforge.net; '谭姝' > Subject: Re: [f2fs-dev] [PATCH] f2fs: avoid to use a NULL point in > destroy_segment_manager > > On 11/06/2013 01:10 PM, Chao Yu wrote: > > > Hi Gu, > > > >> -Original Message- > >> From: Gu Z

Re: [f2fs-dev] [PATCH] f2fs: avoid to use a NULL point in destroy_segment_manager

2013-11-05 Thread Gu Zheng
ger.kernel.org; >> linux-f2fs-devel@lists.sourceforge.net; 谭姝 >> Subject: Re: [f2fs-dev] [PATCH] f2fs: avoid to use a NULL point in >> destroy_segment_manager >> >> On 11/06/2013 09:12 AM, Chao Yu wrote: >> >>> A NULL point should avoid to be used in destroy

Re: [f2fs-dev] [PATCH] f2fs: avoid to use a NULL point in destroy_segment_manager

2013-11-05 Thread Chao Yu
Re: [f2fs-dev] [PATCH] f2fs: avoid to use a NULL point in > destroy_segment_manager > > On 11/06/2013 09:12 AM, Chao Yu wrote: > > > A NULL point should avoid to be used in destroy_segment_manager after > > allocating memory fail for f2fs_sm_info. > > Though witho

Re: [f2fs-dev] [PATCH] f2fs: avoid to use a NULL point in destroy_segment_manager

2013-11-05 Thread Gu Zheng
On 11/06/2013 09:12 AM, Chao Yu wrote: > A NULL point should avoid to be used in destroy_segment_manager after > allocating memory fail for f2fs_sm_info. Though without this patch it still can work well, because if it failed to allocate f2fs_sm_info, the sit_info, free_info... all were NULL, and

[f2fs-dev] [PATCH] f2fs: avoid to use a NULL point in destroy_segment_manager

2013-11-05 Thread Chao Yu
A NULL point should avoid to be used in destroy_segment_manager after allocating memory fail for f2fs_sm_info. Signed-off-by: Chao Yu --- fs/f2fs/segment.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c index 3d4d5fc..ff363e6 --- a/fs/f2fs/segment