]> git.proxmox.com Git - mirror_edk2.git/commit - ArmPkg/Drivers/MmCommunicationDxe/MmCommunication.c
ArmPkg/MmCommunicationDxe: fix logic bug in DXE driver entrypoint
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Wed, 26 Feb 2020 12:06:31 +0000 (13:06 +0100)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 4 Mar 2020 17:42:43 +0000 (17:42 +0000)
commit3be909099cf66f26a5ace282e4cbbdc6bf7cb32b
tree892cede5ee1566da2ae62f62932f9a58a966b077
parente63d54db952634c2a3a6a24b6c2a4c6ff66f22bd
ArmPkg/MmCommunicationDxe: fix logic bug in DXE driver entrypoint

Commit 2fe25a74d6fee3c2 ("ArmPkg/MmCommunicationDxe: relay architected PI
events to MM context") update the ARM specific standalone MM client
driver to register for certain events in the entrypoint code, but did
so in a way that makes the entrypoint always return with an error.

Instead, return EFI_SUCCESS if registering for those events succeeds,
and back out the registrations that did succeed if one fails, and
return an error.

Fixes: 2fe25a74d6fee3c2 ("ArmPkg/MmCommunicationDxe: relay architected PI events to MM context")
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Leif Lindholm <leif@nuviainc.com>
ArmPkg/Drivers/MmCommunicationDxe/MmCommunication.c