]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/UhciPei: Initialize the variable RequestMap
authorShenglei Zhang <shenglei.zhang@intel.com>
Tue, 15 Oct 2019 02:06:42 +0000 (10:06 +0800)
committerLiming Gao <liming.gao@intel.com>
Mon, 4 Nov 2019 00:56:12 +0000 (08:56 +0800)
commita857ea4199ead1858e55b081fea38fcf0e721c8c
tree8b9f51efbd516b95648819028338bc909360fbdf
parent7a2505bb0f64a266002737ea8446f14cc4095a22
MdeModulePkg/UhciPei: Initialize the variable RequestMap

RequestMap is used but not Initialized.
RequestMap is called by UhciMapUserRequest, in which RequestMap(Map)
is called by IoMmuMap, and is finally called by IoMmu->Map.
We can not assume RequestMap 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>
MdeModulePkg/Bus/Pci/UhciPei/UhcPeim.c