SecurityPkg OpalPasswordDxe: Return directly if no any device

Return directly if no any device in EndOfDxe notification.

Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Cc: Chao Zhang <chao.b.zhang@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
This commit is contained in:
Star Zeng 2018-03-13 09:18:03 +08:00
parent a34a886962
commit fbe1328a51
1 changed files with 8 additions and 0 deletions

View File

@ -610,6 +610,14 @@ OpalEndOfDxeEventNotify (
mOpalRequestVariableSize = 0;
}
//
// If no any device, return directly.
//
if (mOpalDriver.DeviceList == NULL) {
gBS->CloseEvent (Event);
return;
}
//
// Assume 64K size and alignment are enough.
//