|
@@ -962,10 +962,17 @@ acpi_status acpi_ex_opcode_1A_0T_1R(struct acpi_walk_state *walk_state)
|
|
*/
|
|
*/
|
|
return_desc =
|
|
return_desc =
|
|
*(operand[0]->reference.where);
|
|
*(operand[0]->reference.where);
|
|
- if (return_desc) {
|
|
|
|
- acpi_ut_add_reference
|
|
|
|
- (return_desc);
|
|
|
|
|
|
+ if (!return_desc) {
|
|
|
|
+ /*
|
|
|
|
+ * Element is NULL, do not allow the dereference.
|
|
|
|
+ * This provides compatibility with other ACPI
|
|
|
|
+ * implementations.
|
|
|
|
+ */
|
|
|
|
+ return_ACPI_STATUS
|
|
|
|
+ (AE_AML_UNINITIALIZED_ELEMENT);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ acpi_ut_add_reference(return_desc);
|
|
break;
|
|
break;
|
|
|
|
|
|
default:
|
|
default:
|