]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/BMMUiLib: Set Handle to NULL after uninstall protocol
authorDandan Bi <dandan.bi@intel.com>
Tue, 23 Apr 2019 06:19:44 +0000 (14:19 +0800)
committerLiming Gao <liming.gao@intel.com>
Sun, 28 Apr 2019 01:32:41 +0000 (09:32 +0800)
commit00d2aef80c9ac866681a737ee0af60e9edccba11
treec3cbcccbe068f55d012f3d9de9d5b1af9a08d2f0
parentc9b3fe1586eb191150081851c94f30277b7a3844
MdeModulePkg/BMMUiLib: Set Handle to NULL after uninstall protocol

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1728

Currently Emulator meets ASSERT when enter setup->Continue->enter setup.
When re-enter setup, the BmmDriverHandle in BMMUiLib Constructor
is not NULL which cause InstallMultipleProtocolInterfaces failure,
then ASSERT. So here set BmmDriverHandle to NULL after uninstalling
protocols on it in Destructor function to avoid this issue.

Cc: Liming Gao <liming.gao@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Cc: Hao Wu <hao.a.wu@intel.com>
Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenance.c