From 2ef0c27cb84c6366702394558c707f6f94b8f647 Mon Sep 17 00:00:00 2001 From: Laszlo Ersek Date: Sat, 7 Sep 2019 00:50:42 +0200 Subject: [PATCH] OvmfPkg/XenBusDxe: fix UninstallMultipleProtocolInterfaces() call Unlike the InstallMultipleProtocolInterfaces() boot service, which takes an (EFI_HANDLE*) as first parameter, the UninstallMultipleProtocolInterfaces() boot service takes an EFI_HANDLE as first parameter. This is an actual bug. It must have remained hidden until now because it's on an error path. Fix the UninstallMultipleProtocolInterfaces() call. Cc: Anthony Perard Cc: Ard Biesheuvel Cc: Jordan Justen Cc: Julien Grall Signed-off-by: Laszlo Ersek Reviewed-by: Anthony PERARD Reviewed-by: Julien Grall Reviewed-by: Philippe Mathieu-Daude --- OvmfPkg/XenBusDxe/XenBus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OvmfPkg/XenBusDxe/XenBus.c b/OvmfPkg/XenBusDxe/XenBus.c index bb8ddbc4d4..2451e58a59 100644 --- a/OvmfPkg/XenBusDxe/XenBus.c +++ b/OvmfPkg/XenBusDxe/XenBus.c @@ -210,7 +210,7 @@ XenBusAddDevice ( ErrorOpenProtocolByChild: gBS->UninstallMultipleProtocolInterfaces ( - &Private->Handle, + Private->Handle, &gEfiDevicePathProtocolGuid, Private->DevicePath, &gXenBusProtocolGuid, &Private->XenBusIo, NULL);