Skip to content

Commit

Permalink
fix: Early free of device nodes in AcpiDtbSsdtGenerator
Browse files Browse the repository at this point in the history
If the initial callback is called before ACPI protocols are ready,
the device nodes are freed before they are processed. This change
returns in this case instead of going to the cleanup code.

Fixes github issue #116
Bug 5079045

Signed-off-by: Jeff Brasen <jbrasen@nvidia.com>
  • Loading branch information
jbrasen authored and ashishsingha committed Jan 29, 2025
1 parent 7b2c3a5 commit cecfa36
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ AcpiProtocolReady (

Status = gBS->LocateProtocol (&gEfiAcpiTableProtocolGuid, NULL, (VOID **)&AcpiTableProtocol);
if (EFI_ERROR (Status)) {
goto Cleanup;
return;
}

gBS->CloseEvent (Event);
Expand Down

0 comments on commit cecfa36

Please sign in to comment.