]> git.proxmox.com Git - mirror_edk2.git/commit
SecurityPkg/Tcg: Fix bug that prevented SubmitCommand buffers from being Max size
authorZhang, Chao B <chao.b.zhang@intel.com>
Fri, 1 Jul 2016 02:32:27 +0000 (10:32 +0800)
committerZhang, Chao B <chao.b.zhang@intel.com>
Fri, 1 Jul 2016 02:33:47 +0000 (10:33 +0800)
commite1f3583409e7fa5041be829440f0139b1a70c3c4
tree8174b4dfdcdba102a139ad4dea060dfb895b5ecf
parent1d9869f9e91605f6c099237eeb3414887f1258a9
SecurityPkg/Tcg: Fix bug that prevented SubmitCommand buffers from being Max size

SubmitCommand() was checking the buffer size for ">=" Max size. This would
cause code to fail with "EFI_INVALID_PARAMETER" if a buffer was passed
that was the "max" size as indicated by the GetCapability() command.
Change to ">" to allow for maximum buffer size.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Bret Barkelew <brbarkel@microsoft.com>
Reviewed-by: Yao Jiewen <jiewen.yao@intel.com>
Reviewed-by: Chao Zhang <chao.b.zhang@intel.com>
SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.c
SecurityPkg/Tcg/TrEEDxe/TrEEDxe.c