diff options
Diffstat (limited to 'source/common/dmswitch.c')
-rw-r--r-- | source/common/dmswitch.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/common/dmswitch.c b/source/common/dmswitch.c index f04ec7434c1c..46546fbb43b2 100644 --- a/source/common/dmswitch.c +++ b/source/common/dmswitch.c @@ -325,6 +325,8 @@ AcpiDmClearTempList ( * FUNCTION: AcpiDmIsSwitchBlock * * PARAMETERS: Op - While Object + * Temp - Where the compiler temp name is returned + * (_T_x) * * RETURN: TRUE if While block can be converted to a Switch/Case block * @@ -550,6 +552,10 @@ AcpiDmIsSwitchBlock ( if (CurrentOp->Common.AmlOpcode == AML_ELSE_OP) { CurrentOp = CurrentOp->Common.Next; + if (!CurrentOp) + { + return (FALSE); + } } /* Ignore the Break Op */ |