]> git.proxmox.com Git - mirror_edk2.git/commit - MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressPassthru.c
MdeModulePkg NvmExpressDxe: Refine GetNextNamespace API to follow spec
authorHao Wu <hao.a.wu@intel.com>
Mon, 29 Aug 2016 01:01:26 +0000 (09:01 +0800)
committerHao Wu <hao.a.wu@intel.com>
Tue, 6 Sep 2016 07:31:26 +0000 (15:31 +0800)
commit114358eaa856d4f48ecb0a9da68d9bb7659226c7
tree0a760f041efd5701b4bd294e3ee7c6d9095dbfb0
parent284dc9bfe40dfb113986ed49d6419435d42f22b3
MdeModulePkg NvmExpressDxe: Refine GetNextNamespace API to follow spec

According to the UEFI spec,
EFI_NVM_EXPRESS_PASS_THRU_PROTOCOL.GetNextNamespace() should return
EFI_NOT_FOUND when the value pointed to by NamespaceId is the namespace ID
of the last namespace on the NVM Express controller. This commit modifies
the check for NamespaceId to follow this rule.

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