]> git.proxmox.com Git - mirror_edk2.git/commit - MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressPassthru.c
MdeModulePkg NvmExpressDxe: Refine BuildDevicePath API to follow spec
authorHao Wu <hao.a.wu@intel.com>
Fri, 19 Aug 2016 03:08:04 +0000 (11:08 +0800)
committerHao Wu <hao.a.wu@intel.com>
Tue, 6 Sep 2016 07:31:20 +0000 (15:31 +0800)
commit946f48ebe6222ce5a5d3650fc19691ae4e7ad8b2
treed4a81d93cda80face8b74ef5f1d0f08946dc836f
parent6fe39780140f9f429c97a71ca3bfa4e16e779793
MdeModulePkg NvmExpressDxe: Refine BuildDevicePath API to follow spec

According to the UEFI spec,
EFI_NVM_EXPRESS_PASS_THRU_PROTOCOL.BuildDevicePath() should return
EFI_NOT_FOUND when the input NamespaceId is not valid. However, current
code returns EFI_DEVICE_ERROR instead. This commit modifies the check for
input NamespaceId to return the correct status.

Cc: Feng Tian <feng.tian@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressPassthru.c