In AcpiPatchDsdtTable if the call to OpenSdt fails, don't try and
close the TableHandle since it causes a crash.

Signed-off-by: Rebecca Cran <rebe...@bsdio.com>
---
 Platform/Ampere/JadePkg/Drivers/AcpiPlatformDxe/AcpiDsdt.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/Platform/Ampere/JadePkg/Drivers/AcpiPlatformDxe/AcpiDsdt.c 
b/Platform/Ampere/JadePkg/Drivers/AcpiPlatformDxe/AcpiDsdt.c
index 885ad8fc3511..da7b50fd6d5e 100644
--- a/Platform/Ampere/JadePkg/Drivers/AcpiPlatformDxe/AcpiDsdt.c
+++ b/Platform/Ampere/JadePkg/Drivers/AcpiPlatformDxe/AcpiDsdt.c
@@ -671,7 +671,6 @@ AcpiPatchDsdtTable (
   Status = AcpiSdtProtocol->OpenSdt (TableKey, &TableHandle);
   if (EFI_ERROR (Status)) {
     ASSERT_EFI_ERROR (Status);
-    AcpiSdtProtocol->Close (TableHandle);
     return Status;
   }
 
-- 
2.45.1



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#119499): https://edk2.groups.io/g/devel/message/119499
Mute This Topic: https://groups.io/mt/106517027/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to