mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-18 14:23:55 +00:00
Fix handling of the implicit return case for methods called from an
external source (i.e., _STA). The previous case only handled calls occurring within AML. This should fix Toshibas, among others. Thanks to Robert Moore of Intel for the fix. MFC after: 2 days
This commit is contained in:
parent
697831d611
commit
4802655124
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/vendor-sys/acpica/dist/; revision=140094
|
@ -167,7 +167,8 @@ AcpiDsIsResultUsed (
|
|||
* An executing method typically has no parent, since each method
|
||||
* is parsed separately.
|
||||
*/
|
||||
if (!Op->Common.Parent)
|
||||
if (!Op->Common.Parent ||
|
||||
Op->Common.Parent->Common.AmlOpcode == AML_SCOPE_OP)
|
||||
{
|
||||
/*
|
||||
* If this is the last statement in the method, we know it is not a
|
||||
|
|
Loading…
Reference in a new issue