File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -517,13 +517,20 @@ acpi_ds_create_field(union acpi_parse_object *op,
517
517
info .region_node = region_node ;
518
518
519
519
status = acpi_ds_get_field_names (& info , walk_state , arg -> common .next );
520
+ if (ACPI_FAILURE (status )) {
521
+ return_ACPI_STATUS (status );
522
+ }
523
+
520
524
if (info .region_node -> object -> region .space_id ==
521
- ACPI_ADR_SPACE_PLATFORM_COMM
522
- && !(region_node -> object -> field .internal_pcc_buffer =
523
- ACPI_ALLOCATE_ZEROED (info .region_node -> object -> region .
524
- length ))) {
525
- return_ACPI_STATUS (AE_NO_MEMORY );
525
+ ACPI_ADR_SPACE_PLATFORM_COMM ) {
526
+ region_node -> object -> field .internal_pcc_buffer =
527
+ ACPI_ALLOCATE_ZEROED (info .region_node -> object -> region .
528
+ length );
529
+ if (!region_node -> object -> field .internal_pcc_buffer ) {
530
+ return_ACPI_STATUS (AE_NO_MEMORY );
531
+ }
526
532
}
533
+
527
534
return_ACPI_STATUS (status );
528
535
}
529
536
You can’t perform that action at this time.
0 commit comments