diff options
author | 2022-03-22 17:02:05 +0100 | |
---|---|---|
committer | 2022-03-25 18:18:55 +0100 | |
commit | 40d8abf364bcab23bc715a9221a3c8623956257b (patch) | |
tree | 016d125148440f488f2636650fb35fa60d3947dc /tools/perf/scripts/python/export-to-sqlite.py | |
parent | Merge tag 'acpi-5.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm (diff) | |
download | wireguard-linux-40d8abf364bcab23bc715a9221a3c8623956257b.tar.xz wireguard-linux-40d8abf364bcab23bc715a9221a3c8623956257b.zip |
ACPI: CPPC: Avoid out of bounds access when parsing _CPC data
If the NumEntries field in the _CPC return package is less than 2, do
not attempt to access the "Revision" element of that package, because
it may not be present then.
Fixes: 337aadff8e45 ("ACPI: Introduce CPU performance controls using CPPC")
BugLink: https://lore.kernel.org/lkml/20220322143534.GC32582@xsang-OptiPlex-9020/
Reported-by: kernel test robot <oliver.sang@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions