[edk2-devel] [edk2-platforms PATCH] SpcrFeaturePkg: Close event in callback routine.

Abdul Lateef Attar via groups.io posted 1 patch 2 years, 7 months ago
Failed in applying to current master (apply log)
.../OutOfBandManagement/SpcrFeaturePkg/SpcrAcpiDxe/SpcrAcpi.c   | 2 ++
1 file changed, 2 insertions(+)
[edk2-devel] [edk2-platforms PATCH] SpcrFeaturePkg: Close event in callback routine.
Posted by Abdul Lateef Attar via groups.io 2 years, 7 months ago
Adds CloseEvent in callbackroutine
OutOfBandACPITableConstruction(),
To avoid multiple installation of SPCR table.

Signed-off-by: Abdul Lateef Attar <AbdulLateef.Attar@amd.com>
---
 .../OutOfBandManagement/SpcrFeaturePkg/SpcrAcpiDxe/SpcrAcpi.c   | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Features/Intel/OutOfBandManagement/SpcrFeaturePkg/SpcrAcpiDxe/SpcrAcpi.c b/Features/Intel/OutOfBandManagement/SpcrFeaturePkg/SpcrAcpiDxe/SpcrAcpi.c
index 85ac48cfa5..86c40e90b8 100644
--- a/Features/Intel/OutOfBandManagement/SpcrFeaturePkg/SpcrAcpiDxe/SpcrAcpi.c
+++ b/Features/Intel/OutOfBandManagement/SpcrFeaturePkg/SpcrAcpiDxe/SpcrAcpi.c
@@ -368,6 +368,8 @@ OutOfBandACPITableConstruction (
 
   Handle          = NULL;
 
+  gBS->CloseEvent (Event);
+
   SavedDevicePath = GetSpcrDevice();
   if (SavedDevicePath == NULL) {
     return;
-- 
2.25.1



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#81171): https://edk2.groups.io/g/devel/message/81171
Mute This Topic: https://groups.io/mt/85901672/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-