[buggy index field handling] [patch]
From: Ducrot Bruno <hidden>
Date: 2003-09-22 17:18:47
Hi Andy, There is a funny bug in acpi/executer/exfldio.c::acpi_ex_field_datum_io When the field come from an indexed one, we read all the time from the address obj_desc->index_field.value Unfortunately, this is wrong, since the correct address is obviously &obj_desc->index_field.value + field_datum_byte_offset
--- linux-2.6.0-test5/drivers/acpi/executer/exfldio.c 2003/09/22 17:09:20 1.1
+++ linux-2.6.0-test5/drivers/acpi/executer/exfldio.c 2003/09/22 17:10:11@@ -425,7 +425,7 @@ /* Write the index value to the index_register (itself a region_field) */ status = acpi_ex_insert_into_field (obj_desc->index_field.index_obj, - &obj_desc->index_field.value, + &obj_desc->index_field.value + field_datum_byte_offset, sizeof (obj_desc->index_field.value)); if (ACPI_FAILURE (status)) { return_ACPI_STATUS (status);
Cheers, -- Ducrot Bruno -- Which is worse: ignorance or apathy? -- Don't know. Don't care. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf