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>
(cherry picked from commit fbe1328a51)
			
			
This commit is contained in:
		@@ -610,6 +610,14 @@ OpalEndOfDxeEventNotify (
 | 
				
			|||||||
    mOpalRequestVariableSize = 0;
 | 
					    mOpalRequestVariableSize = 0;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  //
 | 
				
			||||||
 | 
					  // If no any device, return directly.
 | 
				
			||||||
 | 
					  //
 | 
				
			||||||
 | 
					  if (mOpalDriver.DeviceList == NULL) {
 | 
				
			||||||
 | 
					    gBS->CloseEvent (Event);
 | 
				
			||||||
 | 
					    return;
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  //
 | 
					  //
 | 
				
			||||||
  // Assume 64K size and alignment are enough.
 | 
					  // Assume 64K size and alignment are enough.
 | 
				
			||||||
  //
 | 
					  //
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user