summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg/Bus
diff options
context:
space:
mode:
authorShenglei Zhang <shenglei.zhang@intel.com>2019-10-09 14:28:50 +0800
committerLiming Gao <liming.gao@intel.com>2019-11-04 08:56:12 +0800
commit7a2505bb0f64a266002737ea8446f14cc4095a22 (patch)
treebcf7a7a3a95ab99e2429ff17920b45166cfca680 /MdeModulePkg/Bus
parentd3eac77eebe995553e5d0ab5fbab54e5d5d9c95f (diff)
downloadedk2-7a2505bb0f64a266002737ea8446f14cc4095a22.tar.gz
edk2-7a2505bb0f64a266002737ea8446f14cc4095a22.tar.bz2
edk2-7a2505bb0f64a266002737ea8446f14cc4095a22.zip
MdeModulePkg/EhciPei: Initialize the variable Map
Map is used but not Initialized. Map is called by IoMmuMap, in which Mapping(Map) is called by IoMmu->Map. We can not assume Map is given an initial value at any step. Cc: Hao A Wu <hao.a.wu@intel.com> Cc: Ray Ni <ray.ni@intel.com> Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com> Reviewed-by: Hao A Wu <hao.a.wu@intel.com>
Diffstat (limited to 'MdeModulePkg/Bus')
-rw-r--r--MdeModulePkg/Bus/Pci/EhciPei/EhciUrb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/MdeModulePkg/Bus/Pci/EhciPei/EhciUrb.c b/MdeModulePkg/Bus/Pci/EhciPei/EhciUrb.c
index 7c6a6a5f97..995ccd2463 100644
--- a/MdeModulePkg/Bus/Pci/EhciPei/EhciUrb.c
+++ b/MdeModulePkg/Bus/Pci/EhciPei/EhciUrb.c
@@ -534,6 +534,8 @@ EhcCreateUrb (
PEI_URB *Urb;
VOID *Map;
+ Map = NULL;
+
Urb = Ehc->Urb;
Urb->Signature = EHC_URB_SIG;
InitializeListHead (&Urb->UrbList);