diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2022-07-18 15:17:17 +0200 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2022-07-28 19:41:07 +0200 |
commit | d9f74d98bbec978edbf860f729b531281ba0d8ff (patch) | |
tree | 33ef192dfd4ff4b0a0b32293df87e6e156cbf152 /drivers/platform/x86 | |
parent | platform/surface: tabletsw: Fix __le32 integer access (diff) | |
download | linux-d9f74d98bbec978edbf860f729b531281ba0d8ff.tar.xz linux-d9f74d98bbec978edbf860f729b531281ba0d8ff.zip |
tools/power/x86/intel-speed-select: Fix off by one check
Change > MAX_DIE_PER_PACKAGE to >= MAX_DIE_PER_PACKAGE to prevent
accessing one element beyond the end of the array.
Fixes: 7fd786dfbd2c ("tools/power/x86/intel-speed-select: OOB daemon mode")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'drivers/platform/x86')
0 files changed, 0 insertions, 0 deletions