mirror of
https://github.com/acpica/acpica/
synced 2025-02-24 09:24:08 +03:00
Can't dereference a pointer to a NULL pkg element
date 2000.05.02.22.30.00; author rmoore1; state Exp;
This commit is contained in:
parent
5f3bc42215
commit
e38abe52fc
@ -1009,6 +1009,19 @@ AmlExecMonadic2 (
|
||||
*/
|
||||
|
||||
RetDesc = *(ObjDesc->Reference.Where);
|
||||
if (!RetDesc)
|
||||
{
|
||||
/*
|
||||
* We can't return a NULL dereferenced value. This is an uninitialized package
|
||||
* element and is thus a severe error.
|
||||
*/
|
||||
|
||||
DEBUG_PRINT (ACPI_ERROR, ("AmlExecMonadic2: DerefOf, NULL package element obj %p\n",
|
||||
ObjDesc));
|
||||
Status = AE_AML_UNINITIALIZED_ELEMENT;
|
||||
goto Cleanup;
|
||||
}
|
||||
|
||||
CmAddReference (RetDesc);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user