From 738df706c1192a546bd88f017dc00d263f2bc1c2 Mon Sep 17 00:00:00 2001 From: Star Zeng Date: Thu, 26 May 2016 13:21:08 +0800 Subject: MdeModulePkg SmmLockBoxSmmLib: Add DESTRUCTOR SmmLockBoxSmmDestructor SmmLockBoxSmmLib is linked to SMM modules. If the module entry-point function returns error, the module will be unloaded and the global variables will point to undefined memory. This patch is to add DESTRUCTOR SmmLockBoxSmmDestructor to uninstall SmmLockBoxCommunication configuration table if it has been installed in Constructor. Cc: Jiewen Yao Cc: Laszlo Ersek Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Jiewen Yao Reviewed-by: Laszlo Ersek Tested-by: Laszlo Ersek --- MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxSmmLib.inf | 1 + 1 file changed, 1 insertion(+) (limited to 'MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxSmmLib.inf') diff --git a/MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxSmmLib.inf b/MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxSmmLib.inf index d722f57a66..eb7ba0bb2e 100644 --- a/MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxSmmLib.inf +++ b/MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxSmmLib.inf @@ -23,6 +23,7 @@ VERSION_STRING = 1.0 LIBRARY_CLASS = LockBoxLib|DXE_SMM_DRIVER CONSTRUCTOR = SmmLockBoxSmmConstructor + DESTRUCTOR = SmmLockBoxSmmDestructor # # The following information is for reference only and not required by the build tools. -- cgit v1.2.3