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 42efc9e commit efd4211Copy full SHA for efd4211
drivers/platform/x86/hp/hp-bioscfg/passwdobj-attributes.c
@@ -335,9 +335,12 @@ static int hp_populate_password_elements_from_package(union acpi_object *passwor
335
password_data->max_password_length = int_value;
336
break;
337
case PSWD_SIZE:
338
- password_data->encodings_size = int_value;
339
- if (int_value > MAX_ENCODINGS_SIZE)
+
+ if (int_value > MAX_ENCODINGS_SIZE) {
340
pr_warn("Password Encoding size value exceeded the maximum number of elements supported or data may be malformed\n");
341
+ int_value = MAX_ENCODINGS_SIZE;
342
+ }
343
+ password_data->encodings_size = int_value;
344
345
/* This step is needed to keep the expected
346
* element list pointing to the right obj[elem].type
0 commit comments