summaryrefslogtreecommitdiff
path: root/arch/x86/include/asm/amd_node.h
diff options
context:
space:
mode:
authorMario Limonciello <mario.limonciello@amd.com>2025-04-23 08:18:44 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-05-22 14:31:39 +0200
commit6603b0274e4a2006ad64a22ae8061b60eb8806c8 (patch)
treed8a9a483aff3a950ccd936a97027096aa0890737 /arch/x86/include/asm/amd_node.h
parentb28be8c10b8259b7c355a1a427c3524442c8243a (diff)
drivers/platform/x86/amd: pmf: Check for invalid sideloaded Smart PC Policies
[ Upstream commit 690d722e02819ef978f90cd7553973eba1007e6c ] If a policy is passed into amd_pmf_get_pb_data() that causes the engine to fail to start there is a memory leak. Free the memory in this failure path. Fixes: 10817f28e5337 ("platform/x86/amd/pmf: Add capability to sideload of policy binary") Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> Link: https://lore.kernel.org/r/20250423132002.3984997-2-superm1@kernel.org Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch/x86/include/asm/amd_node.h')
0 files changed, 0 insertions, 0 deletions