In XenBusDxe, the XenBusAddDevice() opens the gXenIoProtocolGuid on
behalf of child controllers. It is never closed and prevents us from
uninstalling the protocol.
Close it where we stop all the children in XenBusDxe->Stop().
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Message-Id: <
20190701105012.25758-1-anthony.perard@citrix.com>
continue;\r
}\r
\r
+ Status = gBS->CloseProtocol (Dev->ControllerHandle, &gXenIoProtocolGuid,\r
+ Dev->This->DriverBindingHandle, ChildData->Handle);\r
+ ASSERT_EFI_ERROR (Status);\r
+\r
Status = gBS->UninstallMultipleProtocolInterfaces (\r
ChildData->Handle,\r
&gEfiDevicePathProtocolGuid, ChildData->DevicePath,\r