diff options
author | Rebecca Cran <rebecca@os.amperecomputing.com> | 2024-08-01 18:39:12 -0600 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2024-09-05 05:37:42 +0000 |
commit | 03bc4252fb68f0dcba72a19e1b2a861a5d6c927e (patch) | |
tree | 4e50fa5339c4835a583ee1fe79beea5842efcfc5 /MdeModulePkg/Bus/Pci/XhciDxe/XhciReg.c | |
parent | 7b9f2018d1f2a850eca2ce1431e9eba8f185a716 (diff) | |
download | edk2-03bc4252fb68f0dcba72a19e1b2a861a5d6c927e.zip edk2-03bc4252fb68f0dcba72a19e1b2a861a5d6c927e.tar.gz edk2-03bc4252fb68f0dcba72a19e1b2a861a5d6c927e.tar.bz2 |
XhciDxe: Fail the start of malfunctioning XHCI controllers
Add missing error checking for malfunctioning XHCI controllers.
Signed-off-by: Rebecca Cran <rebecca@os.amperecomputing.com>
Diffstat (limited to 'MdeModulePkg/Bus/Pci/XhciDxe/XhciReg.c')
-rw-r--r-- | MdeModulePkg/Bus/Pci/XhciDxe/XhciReg.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/MdeModulePkg/Bus/Pci/XhciDxe/XhciReg.c b/MdeModulePkg/Bus/Pci/XhciDxe/XhciReg.c index 525942a..dc8228b 100644 --- a/MdeModulePkg/Bus/Pci/XhciDxe/XhciReg.c +++ b/MdeModulePkg/Bus/Pci/XhciDxe/XhciReg.c @@ -29,6 +29,8 @@ XhcReadCapReg8 ( UINT8 Data;
EFI_STATUS Status;
+ Data = 0;
+
Status = Xhc->PciIo->Mem.Read (
Xhc->PciIo,
EfiPciIoWidthUint8,
|