Re: [PATCH] powerpc/papr_scm: Fix leaking 'bus_desc.provider_name' in some paths

2020-01-28 Thread Michael Ellerman
On Wed, 2020-01-22 at 15:51:40 UTC, Vaibhav Jain wrote: > String 'bus_desc.provider_name' allocated inside > papr_scm_nvdimm_init() will leaks in case call to > nvdimm_bus_register() fails or when papr_scm_remove() is called. > > This minor patch ensures that 'bus_desc.provider_name' is freed in >

Re: [PATCH] powerpc/papr_scm: Fix leaking 'bus_desc.provider_name' in some paths

2020-01-22 Thread Aneesh Kumar K.V
On 1/22/20 9:21 PM, Vaibhav Jain wrote: String 'bus_desc.provider_name' allocated inside papr_scm_nvdimm_init() will leaks in case call to nvdimm_bus_register() fails or when papr_scm_remove() is called. This minor patch ensures that 'bus_desc.provider_name' is freed in error path for nvdimm_bus

[PATCH] powerpc/papr_scm: Fix leaking 'bus_desc.provider_name' in some paths

2020-01-22 Thread Vaibhav Jain
String 'bus_desc.provider_name' allocated inside papr_scm_nvdimm_init() will leaks in case call to nvdimm_bus_register() fails or when papr_scm_remove() is called. This minor patch ensures that 'bus_desc.provider_name' is freed in error path for nvdimm_bus_register() as well as in papr_scm_remove(