]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg SmmLockBox: Return actual data length in SmmLockBoxRestore
authorStar Zeng <star.zeng@intel.com>
Mon, 13 Aug 2018 08:50:37 +0000 (16:50 +0800)
committerStar Zeng <star.zeng@intel.com>
Thu, 16 Aug 2018 01:02:14 +0000 (09:02 +0800)
commita9ae5b37bf5c7a3accbd2a513c354c4467547a05
tree5fd8ab5df42085ad4f09cb1261d4d037dca9e7e4
parenta6daab1f6cb836e4147324bb85fc17930be14e87
MdeModulePkg SmmLockBox: Return actual data length in SmmLockBoxRestore

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1082

Current code only returns actual data length in case of return status
buffer too small.
If caller provided a buffer that's large enough to restore data from
lock box, actual data length is not returned. It needs to be updated
in case of return status as success as well.

Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Anbazhagan Baraneedharan <anbazhagan@hp.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
MdeModulePkg/Universal/LockBox/SmmLockBox/SmmLockBox.c