When creating a package element via "Store(0xXXX, Index(ArgX, 0xXXX))",
be sure to increment the refcount of the argument so it is not prematurely deleted. This is a workaround and may appear in a different form in ACPI-CA. This fixes battery evaluation on Thinkpads that was broken by fixing the Dell battery state. Submitted by: Luming Yu <luming.yu@intel.com>
This commit is contained in:
parent
59cb1d160c
commit
b88cf1027b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/vendor-sys/acpica/dist/; revision=124528
@ -389,7 +389,7 @@ AcpiExStoreObjectToIndex (
|
||||
|
||||
/* If same as the original source, add a reference */
|
||||
|
||||
if (NewDesc == SourceDesc)
|
||||
if (NewDesc == SourceDesc || ObjDesc == NULL)
|
||||
{
|
||||
AcpiUtAddReference (NewDesc);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user