ACPICA: Fix memory leak for ill-formed Package objects
authorBob Moore <robert.moore@intel.com>
Thu, 3 Sep 2009 02:03:37 +0000 (10:03 +0800)
committerLen Brown <len.brown@intel.com>
Wed, 9 Sep 2009 02:28:33 +0000 (22:28 -0400)
commite3fe0913b8e732ae636cf23afca76cf2c30718e5
tree378560796739a8ede800c1b2d0759dde4bc16cbb
parente678902ee899f6b0ab48166b410cdc9f1c27a350
ACPICA: Fix memory leak for ill-formed Package objects

Fixes a possible memory leak in the interpreter for package
objects if the package initializer list is longer than the
defined size of the package. This apparently can only happen
if the BIOS changes the package size on the fly (seen in a _PSS
object), as both iASL and the other compiler do not allow this.
The interpreter will truncate the package to the defined size
(and issue an error message), but can leave the extra objects
undeleted if they have been pre-created during the argument
processing (such is the case if the package consists of a number
of sub-packages as in the _PSS.) ACPICA BZ 805.

http://www.acpica.org/bugzilla/show_bug.cgi?id=805

Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/acpica/dsobject.c