Log message from FreeBSD:
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 at intel.com>
This commit is contained in:
parent
0a0ed6029c
commit
e8492b62f8
|
@ -116,7 +116,7 @@
|
|||
*****************************************************************************/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: exstore.c,v 1.9 2003/12/13 18:11:01 kochi Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: exstore.c,v 1.10 2004/02/02 08:00:56 soren Exp $");
|
||||
|
||||
#define __EXSTORE_C__
|
||||
|
||||
|
@ -392,7 +392,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