mirror of
https://github.com/acpica/acpica/
synced 2025-01-29 04:35:15 +03:00
Implicit return fix - AE_OK if object returned, but was not expected.
date 2005.01.21.22.43.00; author rmoore1; state Exp;
This commit is contained in:
parent
7c9957fc40
commit
e3819b73cc
@ -1,7 +1,7 @@
|
||||
/******************************************************************************
|
||||
*
|
||||
* Module Name: uteval - Object evaluation
|
||||
* $Revision: 1.55 $
|
||||
* $Revision: 1.57 $
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
*
|
||||
* 1. Copyright Notice
|
||||
*
|
||||
* Some or all of this work - Copyright (c) 1999 - 2004, Intel Corp.
|
||||
* Some or all of this work - Copyright (c) 1999 - 2005, Intel Corp.
|
||||
* All rights reserved.
|
||||
*
|
||||
* 2. License
|
||||
@ -282,6 +282,18 @@ AcpiUtEvaluateObject (
|
||||
break;
|
||||
}
|
||||
|
||||
if ((AcpiGbl_EnableInterpreterSlack) &&
|
||||
(!ExpectedReturnBtypes))
|
||||
{
|
||||
/*
|
||||
* We received a return object, but one was not expected. This can
|
||||
* happen frequently if the "implicit return" feature is enabled.
|
||||
* Just delete the return object and return AE_OK.
|
||||
*/
|
||||
AcpiUtRemoveReference (Info.ReturnObject);
|
||||
return_ACPI_STATUS (AE_OK);
|
||||
}
|
||||
|
||||
/* Is the return object one of the expected types? */
|
||||
|
||||
if (!(ExpectedReturnBtypes & ReturnBtype))
|
||||
|
Loading…
x
Reference in New Issue
Block a user