summaryrefslogtreecommitdiff
path: root/arch/powerpc/include/asm/cputable.h
diff options
context:
space:
mode:
authorVaibhav Jain <vaibhav@linux.ibm.com>2020-01-22 18:51:40 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2020-01-25 16:11:37 +0300
commit5649607a8d0b0e019a4db14aab3de1e16c3a2b4f (patch)
tree980049d0581f6131d9cb049da60ba44067f87f95 /arch/powerpc/include/asm/cputable.h
parent493a55f1e7724dee5e71bc726d5b819292094587 (diff)
downloadlinux-5649607a8d0b0e019a4db14aab3de1e16c3a2b4f.tar.xz
powerpc/papr_scm: Fix leaking 'bus_desc.provider_name' in some paths
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(). Fixes: b5beae5e224f ("powerpc/pseries: Add driver for PAPR SCM regions") Signed-off-by: Vaibhav Jain <vaibhav@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20200122155140.120429-1-vaibhav@linux.ibm.com
Diffstat (limited to 'arch/powerpc/include/asm/cputable.h')
0 files changed, 0 insertions, 0 deletions