diff options
Diffstat (limited to 'drivers/acpi/utilities/utcopy.c')
-rw-r--r-- | drivers/acpi/utilities/utcopy.c | 11 |
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 @@ | |||
5 | *****************************************************************************/ | 5 | *****************************************************************************/ |
6 | 6 | ||
7 | /* | 7 | /* |
8 | * Copyright (C) 2000 - 2006, R. Byron Moore | 8 | * Copyright (C) 2000 - 2007, R. Byron Moore |
9 | * All rights reserved. | 9 | * All rights reserved. |
10 | * | 10 | * |
11 | * Redistribution and use in source and binary forms, with or without | 11 | * 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, | |||
719 | acpi_ut_add_reference(source_desc->reference.object); | 719 | acpi_ut_add_reference(source_desc->reference.object); |
720 | break; | 720 | break; |
721 | 721 | ||
722 | case ACPI_TYPE_REGION: | ||
723 | /* | ||
724 | * We copied the Region Handler, so we now must add a reference | ||
725 | */ | ||
726 | if (dest_desc->region.handler) { | ||
727 | acpi_ut_add_reference(dest_desc->region.handler); | ||
728 | } | ||
729 | break; | ||
730 | |||
722 | default: | 731 | default: |
723 | /* Nothing to do for other simple objects */ | 732 | /* Nothing to do for other simple objects */ |
724 | break; | 733 | break; |