Unverified Commit 690d722e authored by Mario Limonciello's avatar Mario Limonciello Committed by Ilpo Järvinen
Browse files

drivers/platform/x86/amd: pmf: Check for invalid sideloaded Smart PC Policies



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: 10817f28 ("platform/x86/amd/pmf: Add capability to sideload of policy binary")
Signed-off-by: default avatarMario Limonciello <mario.limonciello@amd.com>
Link: https://lore.kernel.org/r/20250423132002.3984997-2-superm1@kernel.org


Reviewed-by: default avatarIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: default avatarIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
parent 02c6e433
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment