mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-29 16:44:10 +02:00
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,
|
NULL,
|
||||||
(VOID **)&SxDispatch
|
(VOID **)&SxDispatch
|
||||||
);
|
);
|
||||||
if (!EFI_ERROR (Status)) {
|
if (!EFI_ERROR (Status) && (SxDispatch != NULL)) {
|
||||||
//
|
//
|
||||||
// Register a S3 entry callback function to
|
// Register a S3 entry callback function to
|
||||||
// determine if it will be during S3 resume.
|
// determine if it will be during S3 resume.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user