We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24652a8 commit 42efc9eCopy full SHA for 42efc9e
drivers/platform/x86/hp/hp-bioscfg/enum-attributes.c
@@ -240,9 +240,11 @@ static int hp_populate_enumeration_elements_from_package(union acpi_object *enum
240
str_value, sizeof(enum_data->current_value));
241
break;
242
case ENUM_SIZE:
243
- enum_data->possible_values_size = int_value;
244
- if (int_value > MAX_VALUES_SIZE)
+ if (int_value > MAX_VALUES_SIZE) {
245
pr_warn("Possible number values size value exceeded the maximum number of elements supported or data may be malformed\n");
+ int_value = MAX_VALUES_SIZE;
246
+ }
247
+ enum_data->possible_values_size = int_value;
248
249
/*
250
* This step is needed to keep the expected
0 commit comments