diff options
author | Colin Ian King <colin.king@canonical.com> | 2017-12-08 23:59:49 +0000 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2017-12-18 12:10:37 +0100 |
commit | 951ef0e19f0736b45d1c4d81f4dfa04a43f87df5 (patch) | |
tree | 43b5e273a03ffbf8bf9924aba95644cce9fe4a61 /tools/perf/scripts/python | |
parent | 1291a0d5049dbc06baaaf66a9ff3f53db493b19b (diff) |
ACPI: CPPC: remove initial assignment of pcc_ss_data
The initialization of pcc_ss_data from pcc_data[pcc_ss_id] before
pcc_ss_id is being range checked could lead to an out-of-bounds array
read. This very same initialization is also being performed after
the range check on pcc_ss_id, so we can just remove this problematic
and also redundant assignment to fix the issue.
Detected by cppcheck:
warning: Value stored to 'pcc_ss_data' during its initialization is never
read
Fixes: 85b1407bf6d2 (ACPI / CPPC: Make CPPC ACPI driver aware of PCC subspace IDs)
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions