https://bugzilla.novell.com/show_bug.cgi?id=350017
User Robert.Moore@intel.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=350017#c34
--- Comment #34 from Robert Moore 2008-03-04 14:22:24 MST ---
We think a possible fix looks like this:
Index: utobject.c
===================================================================
RCS file: /home/cmplr/cvs/acpica/Acpi/source/components/utilities/utobject.c,v
retrieving revision 1.107
diff -u -r1.107 utobject.c
--- utobject.c 9 Jan 2008 21:27:20 -0000 1.107
+++ utobject.c 4 Mar 2008 21:14:07 -0000
@@ -555,26 +555,21 @@
ACPI_FUNCTION_TRACE_PTR (UtGetSimpleObjectSize, InternalObject);
+ /* Start with the length of the (external) Acpi object */
+
+ Length = sizeof (ACPI_OBJECT);
+
/*
* Handle a null object (Could be a uninitialized package
- * element -- which is legal)
+ * element -- which is legal) or a namespace node (reference).
*/
- if (!InternalObject)
- {
- *ObjLength = 0;
- return_ACPI_STATUS (AE_OK);
- }
-
- /* Start with the length of the Acpi object */
-
- Length = sizeof (ACPI_OBJECT);
-
- if (ACPI_GET_DESCRIPTOR_TYPE (InternalObject) == ACPI_DESC_TYPE_NAMED)
+ if ((!InternalObject) ||
+ (ACPI_GET_DESCRIPTOR_TYPE (InternalObject) == ACPI_DESC_TYPE_NAMED))
{
/* Object is a named object (reference), just return the length */
*ObjLength = ACPI_ROUND_UP_TO_NATIVE_WORD (Length);
- return_ACPI_STATUS (Status);
+ return_ACPI_STATUS (AE_OK);
}
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.