summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStar Zeng <star.zeng@intel.com>2015-07-26 08:03:50 +0000
committerjljusten <jljusten@Edk2>2015-07-26 08:03:50 +0000
commite43525ee3c3355a4a706b7197b0d2f5f56ef3fba (patch)
tree3965be11e0e5a5ee9e30e965060f178d2dbdd534
parentb2f35637da091be37748203a5817a1c732c69e12 (diff)
downloadedk2-platforms-e43525ee3c3355a4a706b7197b0d2f5f56ef3fba.tar.xz
MdeModulePkg VariableDxe: Correct address pointers from AuthVariableLib
Originally, the double pointer (VOID **) is not correct for convert address pointers from AuthVariableLib. Cc: Jiewen Yao <jiewen.yao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Jiewen Yao <Jiewen.Yao@intel.com> Tested-by: Laszlo Ersek <lersek@redhat.com> Signed-off-by: Laszlo Ersek <lersek@redhat.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18054 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r--MdeModulePkg/Include/Library/AuthVariableLib.h2
-rw-r--r--MdeModulePkg/Universal/Variable/RuntimeDxe/VariableDxe.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/MdeModulePkg/Include/Library/AuthVariableLib.h b/MdeModulePkg/Include/Library/AuthVariableLib.h
index 66bc4246b5..0731b8d748 100644
--- a/MdeModulePkg/Include/Library/AuthVariableLib.h
+++ b/MdeModulePkg/Include/Library/AuthVariableLib.h
@@ -202,7 +202,7 @@ typedef struct {
//
// Caller needs to ConvertPointer() for the pointers.
//
- VOID **AddressPointer;
+ VOID ***AddressPointer;
UINTN AddressPointerCount;
} AUTH_VAR_LIB_CONTEXT_OUT;
diff --git a/MdeModulePkg/Universal/Variable/RuntimeDxe/VariableDxe.c b/MdeModulePkg/Universal/Variable/RuntimeDxe/VariableDxe.c
index a95846a934..314ffddef1 100644
--- a/MdeModulePkg/Universal/Variable/RuntimeDxe/VariableDxe.c
+++ b/MdeModulePkg/Universal/Variable/RuntimeDxe/VariableDxe.c
@@ -259,7 +259,7 @@ VariableClassAddressChangeEvent (
if (mContextOut.AddressPointer != NULL) {
for (Index = 0; Index < mContextOut.AddressPointerCount; Index++) {
- EfiConvertPointer (0x0, (VOID **) &mContextOut.AddressPointer[Index]);
+ EfiConvertPointer (0x0, (VOID **) mContextOut.AddressPointer[Index]);
}
}
}