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

Michael Ellerman patch-notifications at ellerman.id.au
Wed Jan 29 16:17:43 AEDT 2020


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
> error path for nvdimm_bus_register() as well as in papr_scm_remove().
> 
> Signed-off-by: Vaibhav Jain <vaibhav at linux.ibm.com>

Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/5649607a8d0b0e019a4db14aab3de1e16c3a2b4f

cheers


More information about the Linuxppc-dev mailing list