Files
kernel_arpi/arch/x86/kernel
Johan Hovold 377a4c5cb7 x86/pmem: Fix platform-device leak in error path
[ Upstream commit 229e73d46994f15314f58b2d39bf952111d89193 ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-08-17 14:23:07 +02:00
..
2022-05-12 12:30:02 +02:00
2020-11-24 16:47:49 +01:00
2022-07-21 21:24:40 +02:00
2022-07-23 12:54:06 +02:00
2021-03-18 15:31:53 +01:00
2022-07-23 12:53:58 +02:00
2021-03-18 15:31:53 +01:00
2021-03-18 15:31:53 +01:00
2022-07-23 12:54:01 +02:00