Skip to content

Commit 36f763d

Browse files
LiuZhiguang001Javagedes
authored andcommitted
MdeModulePkg/SMM: Initialize 'WillReturn' variable
The local variable 'WillReturn' was being used without prior initialization in some code paths. This patch ensures that 'WillReturn' is properly initialized to prevent undefined behavior. Signed-off-by: Zhiguang Liu <[email protected]>
1 parent 7e30a97 commit 36f763d

File tree

1 file changed

+1
-0
lines changed
  • MdeModulePkg/Core/PiSmmCore

1 file changed

+1
-0
lines changed

MdeModulePkg/Core/PiSmmCore/Smi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ SmiManage (
152152

153153
PERF_FUNCTION_BEGIN ();
154154
mSmiManageCallingDepth++;
155+
WillReturn = FALSE;
155156
Status = EFI_NOT_FOUND;
156157
ReturnStatus = Status;
157158
if (HandlerType == NULL) {

0 commit comments

Comments
 (0)