From 1525ff38cbbdba0b97c43b73183b6d9aa2c7fb93 Mon Sep 17 00:00:00 2001 From: Dandan Bi Date: Fri, 16 Dec 2016 09:53:03 +0800 Subject: [PATCH] MdeModulePkg/NonDiscoverablePciDeviceDxe: Fix VS2010/2012 build failure Cc: Ard Biesheuvel Cc: Ruiyu Ni Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dandan Bi Reviewed-by: Ruiyu Ni --- .../Pci/NonDiscoverablePciDeviceDxe/NonDiscoverablePciDeviceIo.c | 1 + 1 file changed, 1 insertion(+) diff --git a/MdeModulePkg/Bus/Pci/NonDiscoverablePciDeviceDxe/NonDiscoverablePciDeviceIo.c b/MdeModulePkg/Bus/Pci/NonDiscoverablePciDeviceDxe/NonDiscoverablePciDeviceIo.c index ce73a770c1..f9b13a5240 100644 --- a/MdeModulePkg/Bus/Pci/NonDiscoverablePciDeviceDxe/NonDiscoverablePciDeviceIo.c +++ b/MdeModulePkg/Bus/Pci/NonDiscoverablePciDeviceDxe/NonDiscoverablePciDeviceIo.c @@ -557,6 +557,7 @@ NonCoherentPciIoFreeBuffer ( Dev = NON_DISCOVERABLE_PCI_DEVICE_FROM_PCI_IO(This); Found = FALSE; + Alloc = NULL; // // Find the uncached allocation list entry associated