summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/Workspace/DecBuildData.py
diff options
context:
space:
mode:
authorHao Wu <hao.a.wu@intel.com>2018-10-17 10:50:51 +0800
committerHao Wu <hao.a.wu@intel.com>2018-10-25 12:41:17 +0800
commitebb6c7633bca47fcd5b460a67e18e4a717ea91cc (patch)
treef36af215862e417fc4c78aa636cbdc7c8c6469ae /BaseTools/Source/Python/Workspace/DecBuildData.py
parent27bf6712b4ea896bf39b00401218ac3b67b683ae (diff)
downloadedk2-ebb6c7633bca47fcd5b460a67e18e4a717ea91cc.tar.gz
edk2-ebb6c7633bca47fcd5b460a67e18e4a717ea91cc.tar.bz2
edk2-ebb6c7633bca47fcd5b460a67e18e4a717ea91cc.zip
MdeModulePkg/NvmExpressDxe: Refine data buffer & len check in PassThru
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=1142 According to the the NVM Express spec Revision 1.1, for some commands (like Get/Set Feature Command, Figure 89 & 90 of the spec), the Memory Buffer maybe optional although the command opcode indicates there is a data transfer between host & controller (Get/Set Feature Command, Figure 38 of the spec). Hence, this commit refine the checks for the 'TransferLength' and 'TransferBuffer' field of the EFI_NVM_EXPRESS_PASS_THRU_COMMAND_PACKET structure to address this issue. Cc: Liangcheng Tang <liangcheng.tang@intel.com> Cc: Star Zeng <star.zeng@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Hao Wu <hao.a.wu@intel.com> Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/Workspace/DecBuildData.py')
0 files changed, 0 insertions, 0 deletions