Remove the auto conversion for the first varstore name to "Setup".
And fix a bug that return status is not set. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8949 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -343,11 +343,11 @@ CallFormCallBack (
|
||||
}
|
||||
|
||||
*Data = AllocateZeroPool (*DataSize);
|
||||
if (Data == NULL) {
|
||||
if (*Data == NULL) {
|
||||
return EFI_OUT_OF_RESOURCES;
|
||||
}
|
||||
|
||||
FwFormCallBack->NvRead (
|
||||
Status = FwFormCallBack->NvRead (
|
||||
FwFormCallBack,
|
||||
BufferStorage->Name,
|
||||
&BufferStorage->Guid,
|
||||
@@ -403,7 +403,7 @@ GetUefiVariable (
|
||||
}
|
||||
|
||||
*Data = AllocateZeroPool (*DataSize);
|
||||
if (Data == NULL) {
|
||||
if (*Data == NULL) {
|
||||
return EFI_OUT_OF_RESOURCES;
|
||||
}
|
||||
|
||||
@@ -611,7 +611,7 @@ ThunkRouteConfig (
|
||||
if (EFI_ERROR (Status)) {
|
||||
goto Done;
|
||||
}
|
||||
|
||||
|
||||
if (ConfigAccess->ThunkContext->NvMapOverride == NULL) {
|
||||
if (ConfigAccess->FormCallbackProtocol == NULL ||
|
||||
ConfigAccess->FormCallbackProtocol->NvWrite == NULL) {
|
||||
|
Reference in New Issue
Block a user