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 08f1f21 commit 24652a8Copy full SHA for 24652a8
drivers/platform/x86/hp/hp-bioscfg/order-list-attributes.c
@@ -243,9 +243,12 @@ static int hp_populate_ordered_list_elements_from_package(union acpi_object *ord
243
break;
244
245
case ORD_LIST_SIZE:
246
+ if (int_value > MAX_ELEMENTS_SIZE) {
247
+ pr_warn("Order List size value exceeded the maximum number of elements supported or data may be malformed\n");
248
+ int_value = MAX_ELEMENTS_SIZE;
249
+ }
250
ordered_list_data->elements_size = int_value;
- if (int_value > MAX_ELEMENTS_SIZE)
- pr_warn("Ordered List size value exceeded the maximum number of elements supported or data may be malformed\n");
251
+
252
/*
253
* This step is needed to keep the expected
254
* element list pointing to the right obj[elem].type
0 commit comments