diff options
author | Mario Limonciello <mario.limonciello@amd.com> | 2025-02-27 20:03:06 +0300 |
---|---|---|
committer | Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> | 2025-03-03 13:48:22 +0300 |
commit | 1be4e29e94a6be77de3bc210820b74f40814f17a (patch) | |
tree | 0110698d80840621ac5bb42709e8cff0ad0137d3 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | b3e127dacad60a384c92baafdc74f1508bf7dd47 (diff) | |
download | linux-1be4e29e94a6be77de3bc210820b74f40814f17a.tar.xz |
platform/x86/amd/pmf: Initialize and clean up `cb_mutex`
`cb_mutex` was introduced in commit 9e0894d07072e ("platform/x86/amd/pmf:
Enable Custom BIOS Inputs for PMF-TA") to prevent conccurrent access for
BIOS inputs. It however isn't initialized and so on use it may lead to
a NULL pointer dereference.
Add code to initialize on probe and clean up on destroy.
Reported-by: Yijun Shen <Yijun.Shen@dell.com>
Cc: Richard Gong <richgong@amd.com>
Fixes: 9e0894d07072e ("platform/x86/amd/pmf: Enable Custom BIOS Inputs for PMF-TA")
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Tested-By: Yijun Shen <Yijun_Shen@Dell.com>
Acked-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
Link: https://lore.kernel.org/r/20250227170308.435862-1-superm1@kernel.org
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions