From 685a1b03ddb503e9e29c2e1ffdd16327c082142e Mon Sep 17 00:00:00 2001 From: Chris Fernald Date: Fri, 9 Feb 2024 12:30:00 -0800 Subject: [PATCH] Fix wrong return value --- .../Library/AdvancedLoggerLib/MmCoreArm/AdvancedLoggerLib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AdvLoggerPkg/Library/AdvancedLoggerLib/MmCoreArm/AdvancedLoggerLib.c b/AdvLoggerPkg/Library/AdvancedLoggerLib/MmCoreArm/AdvancedLoggerLib.c index ae41fdb486..8b61d48d61 100644 --- a/AdvLoggerPkg/Library/AdvancedLoggerLib/MmCoreArm/AdvancedLoggerLib.c +++ b/AdvLoggerPkg/Library/AdvancedLoggerLib/MmCoreArm/AdvancedLoggerLib.c @@ -95,7 +95,7 @@ AdvancedLoggerGetLoggerInfo ( if ((LoggerInfo->LogBuffer + LoggerInfo->LogBufferSize) > (FixedPcdGet32 (PcdAdvancedLoggerPages) * EFI_PAGE_SIZE)) { - return FALSE; + return NULL; } // Ensure the current pointer does not overrun.