]> git.proxmox.com Git - mirror_edk2.git/commit - MdeModulePkg/Bus/Pci/XhciDxe/XhciReg.c
MdeModulePkg: XhciDxe: Prevent illegal memory access in XhcSetHsee
authorMarcin Wojtas <mw@semihalf.com>
Tue, 25 Sep 2018 21:57:51 +0000 (05:57 +0800)
committerStar Zeng <star.zeng@intel.com>
Wed, 26 Sep 2018 00:33:52 +0000 (08:33 +0800)
commite5cd809087e5710e019d2766fab13c59a2e2ac28
treed3479c6aa2c0d6074f2fec319c4a76bfa48da8c5
parent3cb0a311cb7e747d7be5c5076d0fff76ad256d2b
MdeModulePkg: XhciDxe: Prevent illegal memory access in XhcSetHsee

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1206

Newly added XhcSetHsee() routine reads 4 bytes into
a UINT16 variable causing issues on PCIE and NonDiscoverable
Xhci controllers. Fix that.

Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Fei1 Wang <fei1.wang@intel.com>
Cc: Star Zeng <star.zeng@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Marcin Wojtas <mw@semihalf.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
MdeModulePkg/Bus/Pci/XhciDxe/XhciReg.c