mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
ACPICA: Fix possible negative array index in acpi_ut_validate_exception
Added NULL fields to the exception string arrays to eliminate the -1 subtraction on the SubStatus field. Signed-off-by: Bob Moore <[email protected]> Signed-off-by: Lin Ming <[email protected]> Signed-off-by: Len Brown <[email protected]> Signed-off-by: Andi Kleen <[email protected]>
This commit is contained in:
parent
6719561f9b
commit
11f2a61ab4
2 changed files with 9 additions and 9 deletions
|
|
@ -226,6 +226,7 @@ char const *acpi_gbl_exception_names_env[] = {
|
|||
};
|
||||
|
||||
char const *acpi_gbl_exception_names_pgm[] = {
|
||||
NULL,
|
||||
"AE_BAD_PARAMETER",
|
||||
"AE_BAD_CHARACTER",
|
||||
"AE_BAD_PATHNAME",
|
||||
|
|
@ -239,6 +240,7 @@ char const *acpi_gbl_exception_names_pgm[] = {
|
|||
};
|
||||
|
||||
char const *acpi_gbl_exception_names_tbl[] = {
|
||||
NULL,
|
||||
"AE_BAD_SIGNATURE",
|
||||
"AE_BAD_HEADER",
|
||||
"AE_BAD_CHECKSUM",
|
||||
|
|
@ -248,6 +250,7 @@ char const *acpi_gbl_exception_names_tbl[] = {
|
|||
};
|
||||
|
||||
char const *acpi_gbl_exception_names_aml[] = {
|
||||
NULL,
|
||||
"AE_AML_ERROR",
|
||||
"AE_AML_PARSE",
|
||||
"AE_AML_BAD_OPCODE",
|
||||
|
|
@ -285,6 +288,7 @@ char const *acpi_gbl_exception_names_aml[] = {
|
|||
};
|
||||
|
||||
char const *acpi_gbl_exception_names_ctrl[] = {
|
||||
NULL,
|
||||
"AE_CTRL_RETURN_VALUE",
|
||||
"AE_CTRL_PENDING",
|
||||
"AE_CTRL_TERMINATE",
|
||||
|
|
|
|||
Loading…
Reference in a new issue