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:
aystarik 2005-06-29 17:35:49 +00:00
parent 5f3bc42215
commit e38abe52fc

View File

@ -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);
}