Skip to content

Commit c9bcd64

Browse files
dmantipovgregkh
authored andcommitted
ACPICA: Fix largest possible resource descriptor index
[ Upstream commit 8ca944f ] ACPI_RESOURCE_NAME_LARGE_MAX should be equal to the last actually used resource descriptor index (ACPI_RESOURCE_NAME_CLOCK_INPUT). Otherwise 'resource_index' in 'acpi_ut_validate_resource()' may be clamped incorrectly and resulting value may issue an out-of-bounds access for 'acpi_gbl_resource_types' array. Compile tested only. Fixes: 520d4a0 ("ACPICA: add support for ClockInput resource (v6.5)") Link: acpica/acpica@cf00116c Link: https://marc.info/?l=linux-acpi&m=175449676131260&w=2 Signed-off-by: Dmitry Antipov <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent 89718d8 commit c9bcd64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/acpi/acpica/aclocal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1141,7 +1141,7 @@ struct acpi_port_info {
11411141
#define ACPI_RESOURCE_NAME_PIN_GROUP_FUNCTION 0x91
11421142
#define ACPI_RESOURCE_NAME_PIN_GROUP_CONFIG 0x92
11431143
#define ACPI_RESOURCE_NAME_CLOCK_INPUT 0x93
1144-
#define ACPI_RESOURCE_NAME_LARGE_MAX 0x94
1144+
#define ACPI_RESOURCE_NAME_LARGE_MAX 0x93
11451145

11461146
/*****************************************************************************
11471147
*

0 commit comments

Comments
 (0)