Skip to content
Commit d9f74d98 authored by Dan Carpenter's avatar Dan Carpenter Committed by Hans de Goede
Browse files

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: 7fd786df ("tools/power/x86/intel-speed-select: OOB daemon mode")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
parent 7a4a04f4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment