]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg NvmExpressDxe: Add NamespaceId validity check in PassThru
authorHao Wu <hao.a.wu@intel.com>
Tue, 30 Aug 2016 08:34:09 +0000 (16:34 +0800)
committerHao Wu <hao.a.wu@intel.com>
Tue, 6 Sep 2016 07:31:41 +0000 (15:31 +0800)
commit80b405a64283b5adfd53b4f4fa48128c58422265
treed4ec3c93d6e07d4833ad4e507c825ca7a1030e6f
parentb7f82a3a0fca88e8adf1820bd15326d3ebfb2109
MdeModulePkg NvmExpressDxe: Add NamespaceId validity check in PassThru

According to the UEFI spec, EFI_NVM_EXPRESS_PASS_THRU_PROTOCOL.PassThru()
should return EFI_INVALID_PARAMETER if the input 'NamespaceId' is invalid
for the NVM Express controller. This commit adds check in PassThru() 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