diff options
author | eric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-03-19 03:13:08 +0000 |
---|---|---|
committer | eric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-03-19 03:13:08 +0000 |
commit | 533020ef8061171713edfcb1e28eac63876c9937 (patch) | |
tree | d0e2a80b07a26cb64287db52f5c377d5371b269b | |
parent | 3a4e990ec48f32a23a1b03a96bc4acaa4e6b4c8f (diff) | |
download | edk2-platforms-533020ef8061171713edfcb1e28eac63876c9937.tar.xz |
close notify event to avoid variable architectural protocol to be installed twice or more.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7904 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r-- | MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c b/MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c index 7a69a223c4..fdaad2017e 100644 --- a/MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c +++ b/MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c @@ -2087,6 +2087,12 @@ FvbNotificationEvent ( FreePool (HandleBuffer);
if (!EFI_ERROR (Status) && Fvb != NULL) {
+ //
+ // Close the notify event to avoid install gEfiVariableArchProtocolGuid & gEfiVariableWriteArchProtocolGuid again.
+ //
+ Status = gBS->CloseEvent (Event);
+ ASSERT_EFI_ERROR (Status);
+
Status = VariableCommonInitialize (Fvb);
ASSERT_EFI_ERROR (Status);
|