diff options
| author | Len Brown <len.brown@intel.com> | 2006-07-10 02:39:41 -0400 |
|---|---|---|
| committer | Len Brown <len.brown@intel.com> | 2006-07-10 02:39:41 -0400 |
| commit | 0f12b15ebcedce115a5d8e5ff741e49a7993f67c (patch) | |
| tree | 3bfea88873b2a43c5528b9687fa010b6eff23458 /drivers/acpi/utilities/utstate.c | |
| parent | 20b499aa06edf59fa2d21f29d42d36586c6c058e (diff) | |
| parent | f6dd9221dddb3550e60d32aee688588ec208312c (diff) | |
Pull acpica-20060707 into test branch
Diffstat (limited to 'drivers/acpi/utilities/utstate.c')
| -rw-r--r-- | drivers/acpi/utilities/utstate.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/acpi/utilities/utstate.c b/drivers/acpi/utilities/utstate.c index 0f5c5bb5deff..eaa13d05c859 100644 --- a/drivers/acpi/utilities/utstate.c +++ b/drivers/acpi/utilities/utstate.c | |||
| @@ -199,6 +199,13 @@ struct acpi_thread_state *acpi_ut_create_thread_state(void) | |||
| 199 | state->common.descriptor_type = ACPI_DESC_TYPE_STATE_THREAD; | 199 | state->common.descriptor_type = ACPI_DESC_TYPE_STATE_THREAD; |
| 200 | state->thread.thread_id = acpi_os_get_thread_id(); | 200 | state->thread.thread_id = acpi_os_get_thread_id(); |
| 201 | 201 | ||
| 202 | /* Check for invalid thread ID - zero is very bad, it will break things */ | ||
| 203 | |||
| 204 | if (!state->thread.thread_id) { | ||
| 205 | ACPI_ERROR((AE_INFO, "Invalid zero ID from AcpiOsGetThreadId")); | ||
| 206 | state->thread.thread_id = (acpi_thread_id) 1; | ||
| 207 | } | ||
| 208 | |||
| 202 | return_PTR((struct acpi_thread_state *)state); | 209 | return_PTR((struct acpi_thread_state *)state); |
| 203 | } | 210 | } |
| 204 | 211 | ||
