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
memory leak in ramoops_init 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 platform_driver_register(&ramoops_dr

[PATCH] fix memory leak in ramoops_init

2018-09-17 Thread nixiaoming
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 platform_driver_register(&ramoops_driver) return 0 kfree(NULL) in

[RESEND PATCH] fix memory leak in ramoops_init

2018-01-03 Thread Nixiaoming
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 platform_driver_register(&ramoops_driver) return 0 kfree(NULL) i

[PATCH] fix memory leak in ramoops_init

2017-12-11 Thread nixiaoming
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 platform_driver_register(&ramoops_driver) return 0 kfree(NULL) in