2. when variable store header is invalid status, we will return EFI_VOLUME_CORRUPTED to let code assert, which is helpful to find root cause quickly.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7804
6f19259b-4bc3-4df7-8a09-
765794883524
);\r
\r
if (EFI_ERROR (Status)) {\r
+ FreePool(mVariableModuleGlobal);\r
return Status;\r
}\r
//\r
NULL, \r
&ReadyToBootEvent\r
);\r
+ } else {\r
+ Status = EFI_VOLUME_CORRUPTED;\r
+ DEBUG((EFI_D_INFO, "Variable Store header is corrupted\n"));\r
}\r
\r
Done:\r