Fix K8 scan issues
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10151 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -398,6 +398,7 @@ SmmLocateHandle (
|
|||||||
*BufferSize = ResultSize;
|
*BufferSize = ResultSize;
|
||||||
|
|
||||||
if (SearchType == ByRegisterNotify && !EFI_ERROR(Status)) {
|
if (SearchType == ByRegisterNotify && !EFI_ERROR(Status)) {
|
||||||
|
ASSERT (SearchKey != NULL);
|
||||||
//
|
//
|
||||||
// If this is a search by register notify and a handle was
|
// If this is a search by register notify and a handle was
|
||||||
// returned, update the register notification position
|
// returned, update the register notification position
|
||||||
|
@ -97,6 +97,7 @@ InternalAllocPoolByIndex (
|
|||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
FREE_POOL_HEADER *Hdr;
|
FREE_POOL_HEADER *Hdr;
|
||||||
|
|
||||||
|
ASSERT (PoolIndex <= MAX_POOL_INDEX);
|
||||||
Status = EFI_SUCCESS;
|
Status = EFI_SUCCESS;
|
||||||
if (PoolIndex == MAX_POOL_INDEX) {
|
if (PoolIndex == MAX_POOL_INDEX) {
|
||||||
Hdr = (FREE_POOL_HEADER *)AllocatePages (EFI_SIZE_TO_PAGES (MAX_POOL_SIZE << 1));
|
Hdr = (FREE_POOL_HEADER *)AllocatePages (EFI_SIZE_TO_PAGES (MAX_POOL_SIZE << 1));
|
||||||
|
Reference in New Issue
Block a user