summaryrefslogtreecommitdiff
path: root/src/security
diff options
context:
space:
mode:
Diffstat (limited to 'src/security')
-rw-r--r--src/security/memory/memory_clear.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/security/memory/memory_clear.c b/src/security/memory/memory_clear.c
index 9a8a23a1f7..e747f4f3ce 100644
--- a/src/security/memory/memory_clear.c
+++ b/src/security/memory/memory_clear.c
@@ -20,6 +20,7 @@
#include <security/memory/memory.h>
#include <cbmem.h>
#include <acpi/acpi.h>
+#include <drivers/efi/capsules.h>
/* Helper to find free space for memset_pae. */
static uintptr_t get_free_memory_range(struct memranges *mem,
@@ -60,6 +61,9 @@ static void clear_memory(void *unused)
if (acpi_is_wakeup_s3())
return;
+ /* Process capsules before clearing memory and only if not waking up from S3. */
+ efi_parse_capsules();
+
if (!security_clear_dram_request())
return;