mirror of https://github.com/acidanthera/audk.git
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:
parent
a34a886962
commit
fbe1328a51
|
@ -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.
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue