diff options
| author | Mario Limonciello <[email protected]> | 2025-04-23 13:18:45 +0000 |
|---|---|---|
| committer | Ilpo Järvinen <[email protected]> | 2025-04-29 14:47:43 +0000 |
| commit | 8e81b9cd6e95188d12c9cc25d40b61dd5ea05ace (patch) | |
| tree | 15592ce30de6ce363e26264ac05ff8b9cc566c00 /drivers/platform/x86/amd/pmc/pmc-quirks.c | |
| parent | drivers/platform/x86/amd: pmf: Check for invalid sideloaded Smart PC Policies (diff) | |
| download | kernel-8e81b9cd6e95188d12c9cc25d40b61dd5ea05ace.tar.gz kernel-8e81b9cd6e95188d12c9cc25d40b61dd5ea05ace.zip | |
drivers/platform/x86/amd: pmf: Check for invalid Smart PC Policies
commit 376a8c2a14439 ("platform/x86/amd/pmf: Update PMF Driver for
Compatibility with new PMF-TA") added support for platforms that support
an updated TA, however it also exposed a number of platforms that although
they have support for the updated TA don't actually populate a policy
binary.
Add an explicit check that the policy binary isn't empty before
initializing the TA.
Reported-by: Christian Heusel <[email protected]>
Closes: https://lore.kernel.org/platform-driver-x86/[email protected]/
Fixes: 376a8c2a14439 ("platform/x86/amd/pmf: Update PMF Driver for Compatibility with new PMF-TA")
Signed-off-by: Mario Limonciello <[email protected]>
Tested-by: Christian Heusel <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Ilpo Järvinen <[email protected]>
Signed-off-by: Ilpo Järvinen <[email protected]>
Diffstat (limited to 'drivers/platform/x86/amd/pmc/pmc-quirks.c')
0 files changed, 0 insertions, 0 deletions
