diff options
| author | Ahmed S. Darwish <[email protected]> | 2024-07-18 15:47:44 +0200 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2024-08-02 09:17:19 +0200 |
| commit | cf96ab1a966b87b09fdd9e8cc8357d2d00776a3a (patch) | |
| tree | cff664731cd84014319472be4334719542e1ea59 /tools/perf/scripts/python/bin/export-to-postgresql-report | |
| parent | 5dd7ca42475bb15fd93d58d42e925512776f14a4 (diff) | |
tools/x86/kcpuid: Protect against faulty "max subleaf" values
Protect against the kcpuid code parsing faulty max subleaf numbers
through a min() expression. Thus, ensuring that max_subleaf will always
be ≤ MAX_SUBLEAF_NUM.
Use "u32" for the subleaf numbers since kcpuid is compiled with -Wextra,
which includes signed/unsigned comparisons warnings.
Signed-off-by: Ahmed S. Darwish <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Link: https://lore.kernel.org/all/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions