ACPICA: fix error path in new external package objects as method arguments
authorMyron Stowe <myron.stowe@hp.com>
Mon, 4 Jun 2007 22:25:37 +0000 (16:25 -0600)
committerLen Brown <len.brown@intel.com>
Mon, 18 Jun 2007 04:51:47 +0000 (00:51 -0400)
commit83dd4504456d4b5e464d6ec4a7665e2c922db67f
tree9886cee43e943e85b267d0ae394ed72ded17ca2e
parente7c746ef098770f863ba294adac5b30d124ba469
ACPICA: fix error path in new external package objects as method arguments

In the routine acpi_ut_create_package_object(), if the
ACPI_ALLOCATE_ZEROED() fails then ACPI_FREE(package_desc) is called as
part of the cleanup.  This should instead be
acpi_ut_remove_reference(package_desc) in order to remove the reference
acquired from acpi_ut_create_internal_object() [see the routine
acpi_ut_create_buffer_object() as an example of proper functionality].

Signed-off-by: Myron Stowe <myron.stowe@hp.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/utilities/utobject.c