summaryrefslogtreecommitdiff
path: root/drivers/acpi/utilities/utcopy.c
diff options
context:
space:
mode:
authorLen Brown <len.brown@intel.com>2007-02-03 09:08:52 +0300
committerLen Brown <len.brown@intel.com>2007-02-03 09:08:52 +0300
commite8bdc5a9c56c140c732246a298922c3cf3777460 (patch)
treedfdbf3a5597dfc5b29324a4dcb303839504cd88e /drivers/acpi/utilities/utcopy.c
parentc6f4bc211122c86de85a6c93f139319957fd1f8a (diff)
parentb0b7eaaf0c7aefd118d3ff8640fbed75a9fad9a1 (diff)
downloadlinux-e8bdc5a9c56c140c732246a298922c3cf3777460.tar.xz
Pull acpica into test branch
Diffstat (limited to 'drivers/acpi/utilities/utcopy.c')
-rw-r--r--drivers/acpi/utilities/utcopy.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/drivers/acpi/utilities/utcopy.c b/drivers/acpi/utilities/utcopy.c
index 5e1a80d1bc36..84d529db0a66 100644
--- a/drivers/acpi/utilities/utcopy.c
+++ b/drivers/acpi/utilities/utcopy.c
@@ -5,7 +5,7 @@
*****************************************************************************/
/*
- * Copyright (C) 2000 - 2006, R. Byron Moore
+ * Copyright (C) 2000 - 2007, R. Byron Moore
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -719,6 +719,15 @@ acpi_ut_copy_simple_object(union acpi_operand_object *source_desc,
acpi_ut_add_reference(source_desc->reference.object);
break;
+ case ACPI_TYPE_REGION:
+ /*
+ * We copied the Region Handler, so we now must add a reference
+ */
+ if (dest_desc->region.handler) {
+ acpi_ut_add_reference(dest_desc->region.handler);
+ }
+ break;
+
default:
/* Nothing to do for other simple objects */
break;