public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH] MdeModulePkg PiSmmCore: Ensure SxDispatch not NULL before dereferenced
@ 2017-12-13  3:27 Star Zeng
  2017-12-13  5:09 ` Wu, Hao A
  0 siblings, 1 reply; 2+ messages in thread
From: Star Zeng @ 2017-12-13  3:27 UTC (permalink / raw)
  To: edk2-devel; +Cc: Star Zeng, Hao Wu, Jiewen Yao

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>
---
 MdeModulePkg/Core/PiSmmCore/PiSmmCore.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/MdeModulePkg/Core/PiSmmCore/PiSmmCore.c b/MdeModulePkg/Core/PiSmmCore/PiSmmCore.c
index 1ccb9c7787ad..f136b5d5693b 100644
--- a/MdeModulePkg/Core/PiSmmCore/PiSmmCore.c
+++ b/MdeModulePkg/Core/PiSmmCore/PiSmmCore.c
@@ -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.
-- 
2.7.0.windows.1



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-12-13  5:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-13  3:27 [PATCH] MdeModulePkg PiSmmCore: Ensure SxDispatch not NULL before dereferenced Star Zeng
2017-12-13  5:09 ` Wu, Hao A

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox