summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNate Lawson <njl@FreeBSD.org>2004-01-04 06:35:01 +0000
committerNate Lawson <njl@FreeBSD.org>2004-01-04 06:35:01 +0000
commit59cb1d160c9c9677b0e8cb36045fc7cc7f309bd7 (patch)
treed59824bc8b64247ff2e0e8cc2990b31a0fba05e8
parentfe2e9bd26c17e3c49400a8760ec052b887965e57 (diff)
Notes
-rw-r--r--sys/contrib/dev/acpica/dsmthdat.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/contrib/dev/acpica/dsmthdat.c b/sys/contrib/dev/acpica/dsmthdat.c
index ac5254b796054..30bb0a2ec5b06 100644
--- a/sys/contrib/dev/acpica/dsmthdat.c
+++ b/sys/contrib/dev/acpica/dsmthdat.c
@@ -663,6 +663,7 @@ AcpiDsStoreObjectToLocal (
ACPI_NAMESPACE_NODE *Node;
ACPI_OPERAND_OBJECT *CurrentObjDesc;
ACPI_OPERAND_OBJECT *NewObjDesc;
+ UINT8 ObjType;
ACPI_FUNCTION_TRACE ("DsStoreObjectToLocal");
@@ -697,7 +698,11 @@ AcpiDsStoreObjectToLocal (
* take a copy of the object before we store.
*/
NewObjDesc = ObjDesc;
- if (ObjDesc->Common.ReferenceCount > 1)
+ ObjType = ACPI_GET_OBJECT_TYPE(ObjDesc);
+ if (ObjDesc->Common.ReferenceCount > 1 &&
+ ObjType != ACPI_TYPE_BUFFER &&
+ ObjType != ACPI_TYPE_PACKAGE &&
+ ObjType != ACPI_TYPE_REGION)
{
Status = AcpiUtCopyIobjectToIobject (ObjDesc, &NewObjDesc, WalkState);
if (ACPI_FAILURE (Status))