Skip to content

Commit 689c079

Browse files
gailium119lzw29107
authored andcommitted
Fix RT 8.1 BSOD issue
1 parent 8243638 commit 689c079

File tree

1 file changed

+4
-0
lines changed
  • MdeModulePkg/Universal/Variable/RuntimeDxe

1 file changed

+4
-0
lines changed

MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c

+4
Original file line numberDiff line numberDiff line change
@@ -2420,6 +2420,10 @@ VariableServiceGetVariable (
24202420
return EFI_INVALID_PARAMETER;
24212421
}
24222422

2423+
if (mVariableModuleGlobal == NULL) {
2424+
return EFI_INVALID_PARAMETER;
2425+
}
2426+
24232427
if (VariableName[0] == 0) {
24242428
return EFI_NOT_FOUND;
24252429
}

0 commit comments

Comments
 (0)