diff options
Diffstat (limited to 'drivers/acpi/utilities')
-rw-r--r-- | drivers/acpi/utilities/utalloc.c | 6 | ||||
-rw-r--r-- | drivers/acpi/utilities/utglobal.c | 3 | ||||
-rw-r--r-- | drivers/acpi/utilities/utmisc.c | 6 |
3 files changed, 9 insertions, 6 deletions
diff --git a/drivers/acpi/utilities/utalloc.c b/drivers/acpi/utilities/utalloc.c index 068450b36475..dc7f24b3a1c0 100644 --- a/drivers/acpi/utilities/utalloc.c +++ b/drivers/acpi/utilities/utalloc.c | |||
@@ -304,7 +304,7 @@ void *acpi_ut_allocate(acpi_size size, u32 component, char *module, u32 line) | |||
304 | 304 | ||
305 | if (!size) { | 305 | if (!size) { |
306 | _ACPI_REPORT_ERROR(module, line, component, | 306 | _ACPI_REPORT_ERROR(module, line, component, |
307 | ("ut_allocate: Attempt to allocate zero bytes\n")); | 307 | ("ut_allocate: Attempt to allocate zero bytes, allocating 1 byte\n")); |
308 | size = 1; | 308 | size = 1; |
309 | } | 309 | } |
310 | 310 | ||
@@ -347,8 +347,8 @@ void *acpi_ut_callocate(acpi_size size, u32 component, char *module, u32 line) | |||
347 | 347 | ||
348 | if (!size) { | 348 | if (!size) { |
349 | _ACPI_REPORT_ERROR(module, line, component, | 349 | _ACPI_REPORT_ERROR(module, line, component, |
350 | ("ut_callocate: Attempt to allocate zero bytes\n")); | 350 | ("ut_callocate: Attempt to allocate zero bytes, allocating 1 byte\n")); |
351 | return_PTR(NULL); | 351 | size = 1; |
352 | } | 352 | } |
353 | 353 | ||
354 | allocation = acpi_os_allocate(size); | 354 | allocation = acpi_os_allocate(size); |
diff --git a/drivers/acpi/utilities/utglobal.c b/drivers/acpi/utilities/utglobal.c index 399e64b51886..7f72839841ca 100644 --- a/drivers/acpi/utilities/utglobal.c +++ b/drivers/acpi/utilities/utglobal.c | |||
@@ -825,6 +825,9 @@ void acpi_ut_init_globals(void) | |||
825 | acpi_gbl_ps_find_count = 0; | 825 | acpi_gbl_ps_find_count = 0; |
826 | acpi_gbl_acpi_hardware_present = TRUE; | 826 | acpi_gbl_acpi_hardware_present = TRUE; |
827 | acpi_gbl_owner_id_mask = 0; | 827 | acpi_gbl_owner_id_mask = 0; |
828 | acpi_gbl_trace_method_name = 0; | ||
829 | acpi_gbl_trace_dbg_level = 0; | ||
830 | acpi_gbl_trace_dbg_layer = 0; | ||
828 | acpi_gbl_debugger_configuration = DEBUGGER_THREADING; | 831 | acpi_gbl_debugger_configuration = DEBUGGER_THREADING; |
829 | acpi_gbl_db_output_flags = ACPI_DB_CONSOLE_OUTPUT; | 832 | acpi_gbl_db_output_flags = ACPI_DB_CONSOLE_OUTPUT; |
830 | 833 | ||
diff --git a/drivers/acpi/utilities/utmisc.c b/drivers/acpi/utilities/utmisc.c index aa1dcd851f89..b57afa7421e8 100644 --- a/drivers/acpi/utilities/utmisc.c +++ b/drivers/acpi/utilities/utmisc.c | |||
@@ -811,15 +811,15 @@ u8 *acpi_ut_get_resource_end_tag(union acpi_operand_object * obj_desc) | |||
811 | 811 | ||
812 | while (buffer < end_buffer) { | 812 | while (buffer < end_buffer) { |
813 | buffer_byte = *buffer; | 813 | buffer_byte = *buffer; |
814 | if (buffer_byte & ACPI_RDESC_TYPE_LARGE) { | 814 | if (buffer_byte & ACPI_RESOURCE_NAME_LARGE) { |
815 | /* Large Descriptor - Length is next 2 bytes */ | 815 | /* Large Descriptor - Length is next 2 bytes */ |
816 | 816 | ||
817 | buffer += ((*(buffer + 1) | (*(buffer + 2) << 8)) + 3); | 817 | buffer += ((*(buffer + 1) | (*(buffer + 2) << 8)) + 3); |
818 | } else { | 818 | } else { |
819 | /* Small Descriptor. End Tag will be found here */ | 819 | /* Small Descriptor. End Tag will be found here */ |
820 | 820 | ||
821 | if ((buffer_byte & ACPI_RDESC_SMALL_MASK) == | 821 | if ((buffer_byte & ACPI_RESOURCE_NAME_SMALL_MASK) == |
822 | ACPI_RDESC_TYPE_END_TAG) { | 822 | ACPI_RESOURCE_NAME_END_TAG) { |
823 | /* Found the end tag descriptor, all done. */ | 823 | /* Found the end tag descriptor, all done. */ |
824 | 824 | ||
825 | return (buffer); | 825 | return (buffer); |