diff options
author | Hao Wu <hao.a.wu@intel.com> | 2016-08-29 10:12:42 +0800 |
---|---|---|
committer | Hao Wu <hao.a.wu@intel.com> | 2016-09-06 15:31:37 +0800 |
commit | b7f82a3a0fca88e8adf1820bd15326d3ebfb2109 (patch) | |
tree | 503a908b9a4d24f8c0c46b56f54f27296bf4d731 /BaseTools/Source/Python/AutoGen/GenMake.py | |
parent | 491f6026293bef88ea31b3d1848300708253f68b (diff) | |
download | edk2-platforms-b7f82a3a0fca88e8adf1820bd15326d3ebfb2109.tar.xz |
MdeModulePkg NvmExpressDxe: Add check for command packet in PassThru
This commit adds serveral checks for the 'Packet' parameter passed to the
EFI_NVM_EXPRESS_PASS_THRU_PROTOCOL.PassThru() API:
The check for the 'TransferLength' field in
EFI_NVM_EXPRESS_PASS_THRU_COMMAND_PACKET to make sure the value will not
exceed the maximum data transfer size allowed by a controller.
The check for the 'TransferBuffer' and 'TransferLength' fields in
EFI_NVM_EXPRESS_PASS_THRU_COMMAND_PACKET when the Opcode of an NVME
command indicates a data transfer between controller and host.
The check for the 'MetadataLength' field in
EFI_NVM_EXPRESS_PASS_THRU_COMMAND_PACKET to make sure the value is not 0
when the corresponding 'MetadataBuffer' field has a non-NULL value.
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>
Diffstat (limited to 'BaseTools/Source/Python/AutoGen/GenMake.py')
0 files changed, 0 insertions, 0 deletions