>From 6ce6b4b21ff3bbfc5bfe2bf01091472154e60bb1 Mon Sep 17 00:00:00 2001
From: Chris Ruffin <[email protected]>
Date: Sun, 3 Nov 2013 23:23:54 -0500
Subject: [PATCH] OvmfPkg/QemuVideoDxe: close the appropriate protocol

Close the same PciIo protocol instance that was opened.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Chris Ruffin <[email protected])
---
 OvmfPkg/QemuVideoDxe/Driver.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/OvmfPkg/QemuVideoDxe/Driver.c b/OvmfPkg/QemuVideoDxe/Driver.c
index d8b9498..2bd8aa0 100644
--- a/OvmfPkg/QemuVideoDxe/Driver.c
+++ b/OvmfPkg/QemuVideoDxe/Driver.c
@@ -436,7 +436,7 @@ Error:
         // Close the PCI I/O Protocol
         //
         gBS->CloseProtocol (
-              Private->Handle,
+              Controller,
               &gEfiPciIoProtocolGuid,
               This->DriverBindingHandle,
               Private->Handle

------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to