From 52ade22e2b1067c12ca69784cf0fc800c4b8fc1a Mon Sep 17 00:00:00 2001 From: Fiodor Suietov Date: Fri, 2 Feb 2007 19:48:18 +0300 Subject: [PATCH] --- yaml --- r: 46344 b: refs/heads/master c: 6b366e2fe1b68bd9af55caf166eaaf0609ba18a9 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/drivers/acpi/utilities/utcopy.c | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index c65fa8858a31..079a8472374e 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 0654a6d3c7a777ddccd35c5bbc5765ffbfe3ea96 +refs/heads/master: 6b366e2fe1b68bd9af55caf166eaaf0609ba18a9 diff --git a/trunk/drivers/acpi/utilities/utcopy.c b/trunk/drivers/acpi/utilities/utcopy.c index 5e1a80d1bc36..5c38276a3fd6 100644 --- a/trunk/drivers/acpi/utilities/utcopy.c +++ b/trunk/drivers/acpi/utilities/utcopy.c @@ -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;