]> git.proxmox.com Git - mirror_edk2.git/commit
SecurityPkg: Fix TPM 1.2 NV Storage Command Size byte order
authorSamer El-Haj-Mahmoud <samer.el-haj-mahmoud@hpe.com>
Thu, 28 Apr 2016 20:24:04 +0000 (04:24 +0800)
committerZhang, Chao B <chao.b.zhang@intel.com>
Tue, 3 May 2016 02:10:58 +0000 (10:10 +0800)
commit8b1331df8b303b296c85883935caf84561f54e37
treec4625e50465a64686d6df58a651a188b8ed9fca1
parentfd338d8bd75034fd4fd35c9b326e9829c835c84f
SecurityPkg: Fix TPM 1.2 NV Storage Command Size byte order

Fix Tpm12NvWriteValue() command/response length byte order.
Tpm12SubmitCommand() was using the value from Command.Hdr.paramSize
which was swapped to be Big Endian, but the function was
expecting it in UINT32 Little Endian

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Samer El-Haj-Mahmoud <elhaj@hpe.com>
Signed-off-by: Derek Lin <derek.lin2@hpe.com>
Reviewed-by: Chao Zhang <chao.b.zhang@intel.com>
Reviewed-by: Yao Jiewen <jiewen.yao@intel.com>
SecurityPkg/Library/Tpm12CommandLib/Tpm12NvStorage.c