public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [edk2-platforms PATCH] SpcrFeaturePkg: Close event in callback routine.
@ 2021-09-27  6:52 Abdul Lateef Attar
  0 siblings, 0 replies; only message in thread
From: Abdul Lateef Attar @ 2021-09-27  6:52 UTC (permalink / raw)
  To: devel; +Cc: rangasai.v.chaganty, gaoliming, Abdul Lateef Attar

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


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-09-27  6:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-09-27  6:52 [edk2-platforms PATCH] SpcrFeaturePkg: Close event in callback routine Abdul Lateef Attar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox