audk/MdeModulePkg/Bus/Pci
Star Zeng 67d3e63c2c MdeModulePkg NvmExpressDxe: return error code in error path
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=937

In NvmeExpressPassthru.c near line 659:
    Prp = NvmeCreatePrpList (
            PciIo,
            PhyAddr,
            EFI_SIZE_TO_PAGES(Offset + Bytes) - 1,
            &PrpListHost,
            &PrpListNo,
            &MapPrpList
            );
    if (Prp == NULL) {
      goto EXIT;
    }
Status is not set to an error code - Status is initialized to
EFI_SUCCESS, or set by a PciIo->Map to EFI_SUCCESS above this
code. This error path should set Status to an error code before
goto EXIT.

Change-Id: I8a5cdf981aa609534c205d3676395805ac60a003
Cc: Hao Wu <hao.a.wu@intel.com>
Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Michael Turner <Michael.Turner@microsoft.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Hao Wu <hao.a.wu@intel.com>
2018-04-25 15:55:45 +08:00
..
EhciDxe MdeModulePkg/EhciDxe: call EhcFreeUrb when int-transfer completes 2018-01-16 10:58:02 +08:00
EhciPei MdeModulePkg EhciPei: Minor refinement about IOMMU 2017-11-22 18:37:48 +08:00
IdeBusPei MdeModulePkg/IdeBusPei: Fix undefined behavior in signed left shift 2017-04-13 08:58:51 +08:00
IncompatiblePciDeviceSupportDxe MdeModulePkg/IncompatiblePci: Use MAX_UINTN to match any IDs 2017-02-10 16:52:00 +08:00
NonDiscoverablePciDeviceDxe MdeModulePkg/NonDiscoverable: fix memory override bug 2017-11-08 12:52:04 +08:00
NvmExpressDxe MdeModulePkg NvmExpressDxe: return error code in error path 2018-04-25 15:55:45 +08:00
PciBusDxe MdeModulePkg/PciBus: return CPU address for GetBarAttributes 2018-03-15 08:26:06 +00:00
PciHostBridgeDxe MdeModulePkg/PciHostBridgeDxe: Add support for address translation 2018-03-15 08:26:05 +00:00
PciSioSerialDxe MdeModulePkg/PciSioSerialDxe: Use MAX_UINT8 instead of PCI_BAR_ALL 2017-02-10 16:52:00 +08:00
SataControllerDxe MdeModulePkg/StaControllerDxe: Fix coding style issue 2017-01-05 14:41:42 +08:00
SdMmcPciHcDxe MdeModulePkg/SdMmcPciHcDxe: allow HC capabilities to be overridden 2018-01-30 09:25:13 +00:00
SdMmcPciHcPei MdeModulePkg/SdMmc: Add EDKII SD/MMC stack 2016-03-30 11:27:41 +08:00
UfsPciHcDxe MdeModulePkg/UfsPciHc: Avoid overriding return value in BindingStart 2017-04-25 09:08:33 +08:00
UfsPciHcPei
UhciDxe MdeModulePkg/Bus: Fix typos in comments 2016-10-27 09:11:16 +08:00
UhciPei MdeModulePkg UhciPei: Also check TempPtr against NULL to return error 2017-11-24 09:34:00 +08:00
XhciDxe MdeModulePkg Xhci: Correct description of Timeout param in XhciReg.h 2017-09-11 09:20:44 +08:00
XhciPei MdeModulePkg XhciPei: Minor refinement about IoMmu 2017-11-17 11:14:22 +08:00