Files
linux/arch/x86/kernel/pmem.c
Johan Hovold 229e73d469 x86/pmem: Fix platform-device leak in error path
Make sure to free the platform device in the unlikely event that
registration fails.

Fixes: 7a67832c7e ("libnvdimm, e820: make CONFIG_X86_PMEM_LEGACY a tristate option")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lore.kernel.org/r/20220620140723.9810-1-johan@kernel.org
2022-06-20 18:01:16 +02:00

798 B