Re: [PATCH] fix memory leak in ramoops_init

2018-09-28 Thread Kees Cook
In the future, please use scripts/get_maintainer.pl to find your To/Cc list. :) On Mon, Sep 17, 2018 at 2:15 AM, nixiaoming wrote: > 1, memory leak in ramoops_register_dummy. >dummy_data = kzalloc(sizeof(*dummy_data), GFP_KERNEL); >but no free when platform_device_register_data return fai

Re: [PATCH] fix memory leak in ramoops_init

2018-09-28 Thread Kees Cook
On Fri, Sep 28, 2018 at 2:26 PM, Andrew Morton wrote: > On Mon, 17 Sep 2018 17:15:31 +0800 nixiaoming wrote: > >> 1, memory leak in ramoops_register_dummy. >>dummy_data = kzalloc(sizeof(*dummy_data), GFP_KERNEL); >>but no free when platform_device_register_data return fail >> >> 2, if kza

Re: [PATCH] fix memory leak in ramoops_init

2018-09-28 Thread Andrew Morton
On Mon, 17 Sep 2018 17:15:31 +0800 nixiaoming wrote: > 1, memory leak in ramoops_register_dummy. >dummy_data = kzalloc(sizeof(*dummy_data), GFP_KERNEL); >but no free when platform_device_register_data return fail > > 2, if kzalloc(sizeof(*dummy_data), GFP_KERNEL) return NULL, > but p

//RE: [PATCH] fix memory leak in ramoops_init

2018-09-17 Thread Nixiaoming
I am very sorry, I sent the wrong email, please ignore the patch just now. -Original Message- From: Nixiaoming Sent: Monday, September 17, 2018 5:16 PM To: j...@suse.cz; amir7...@gmail.com Cc: Nixiaoming ; linux-fsde...@vger.kernel.org; linux-kernel@vger.kernel.org Subject: [PATCH] fix m