aboutsummaryrefslogtreecommitdiffstats
path: root/include/acpi
diff options
context:
space:
mode:
authorBob Moore <robert.moore@intel.com>2008-06-10 00:53:01 -0400
committerAndi Kleen <andi@basil.nowhere.org>2008-07-16 17:27:03 -0400
commit11f2a61ab418305167f9a3f3a31a50449222f64b (patch)
tree83a56046d08afc5c68ffd06d3e7970366067545a /include/acpi
parent6719561f9b4281491f58ed9f0bbc179dc7db95b7 (diff)
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 <robert.moore@intel.com> Signed-off-by: Lin Ming <ming.m.lin@intel.com> Signed-off-by: Len Brown <len.brown@intel.com> Signed-off-by: Andi Kleen <ak@linux.intel.com>
Diffstat (limited to 'include/acpi')
-rw-r--r--include/acpi/acexcep.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/acpi/acexcep.h b/include/acpi/acexcep.h
index ea627ed2420d..e5a890ffeb02 100644
--- a/include/acpi/acexcep.h
+++ b/include/acpi/acexcep.h
@@ -226,6 +226,7 @@ char const *acpi_gbl_exception_names_env[] = {
226}; 226};
227 227
228char const *acpi_gbl_exception_names_pgm[] = { 228char const *acpi_gbl_exception_names_pgm[] = {
229 NULL,
229 "AE_BAD_PARAMETER", 230 "AE_BAD_PARAMETER",
230 "AE_BAD_CHARACTER", 231 "AE_BAD_CHARACTER",
231 "AE_BAD_PATHNAME", 232 "AE_BAD_PATHNAME",
@@ -239,6 +240,7 @@ char const *acpi_gbl_exception_names_pgm[] = {
239}; 240};
240 241
241char const *acpi_gbl_exception_names_tbl[] = { 242char const *acpi_gbl_exception_names_tbl[] = {
243 NULL,
242 "AE_BAD_SIGNATURE", 244 "AE_BAD_SIGNATURE",
243 "AE_BAD_HEADER", 245 "AE_BAD_HEADER",
244 "AE_BAD_CHECKSUM", 246 "AE_BAD_CHECKSUM",
@@ -248,6 +250,7 @@ char const *acpi_gbl_exception_names_tbl[] = {
248}; 250};
249 251
250char const *acpi_gbl_exception_names_aml[] = { 252char const *acpi_gbl_exception_names_aml[] = {
253 NULL,
251 "AE_AML_ERROR", 254 "AE_AML_ERROR",
252 "AE_AML_PARSE", 255 "AE_AML_PARSE",
253 "AE_AML_BAD_OPCODE", 256 "AE_AML_BAD_OPCODE",
@@ -285,6 +288,7 @@ char const *acpi_gbl_exception_names_aml[] = {
285}; 288};
286 289
287char const *acpi_gbl_exception_names_ctrl[] = { 290char const *acpi_gbl_exception_names_ctrl[] = {
291 NULL,
288 "AE_CTRL_RETURN_VALUE", 292 "AE_CTRL_RETURN_VALUE",
289 "AE_CTRL_PENDING", 293 "AE_CTRL_PENDING",
290 "AE_CTRL_TERMINATE", 294 "AE_CTRL_TERMINATE",