https://bugzilla.novell.com/show_bug.cgi?id=350017

User [EMAIL PROTECTED] added comment
https://bugzilla.novell.com/show_bug.cgi?id=350017#c34





--- Comment #34 from Robert Moore <[EMAIL PROTECTED]>  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.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
acpi-bugzilla mailing list
acpi-bugzilla@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/acpi-bugzilla

Reply via email to