]> git.proxmox.com Git - mirror_edk2.git/commit
OvmfPkg: fix BuildResourceDescriptorHob call in PlatformAddHobCB()
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 25 Jan 2023 17:10:49 +0000 (18:10 +0100)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Thu, 26 Jan 2023 08:59:29 +0000 (08:59 +0000)
commitf25ee547634375b7f2dfa09209942fd03d00c76f
tree28e5dc06eeafe83a8277c78738c64bb0e7e8e3e6
parent37d3eb026a766b2405daae47e02094c2ec248646
OvmfPkg: fix BuildResourceDescriptorHob call in PlatformAddHobCB()

BuildResourceDescriptorHob() expects the third parameter be the Length,
not the End address.

Fixes: 328076cfdf45 ("OvmfPkg/PlatformInitLib: Add PlatformAddHobCB")
Reported-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Tested-by: Tom Lendacky <thomas.lendacky@amd.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
OvmfPkg/Library/PlatformInitLib/MemDetect.c