mirror of https://github.com/acidanthera/audk.git
MdeModulePkg PiSmmCore: Ensure SxDispatch not NULL before dereferenced
Cc: Hao Wu <hao.a.wu@intel.com> Cc: Jiewen Yao <jiewen.yao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Hao Wu <hao.a.wu@intel.com>
This commit is contained in:
parent
5c59537c10
commit
1cf2410047
|
@ -321,7 +321,7 @@ SmmReadyToBootHandler (
|
|||
NULL,
|
||||
(VOID **)&SxDispatch
|
||||
);
|
||||
if (!EFI_ERROR (Status)) {
|
||||
if (!EFI_ERROR (Status) && (SxDispatch != NULL)) {
|
||||
//
|
||||
// Register a S3 entry callback function to
|
||||
// determine if it will be during S3 resume.
|
||||
|
|
Loading…
Reference in New Issue