]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/PropertiesTableAttributesDxe/PropertiesTableAttributesDxe.c
MdeModulePkg: Clean up source files
[mirror_edk2.git] / MdeModulePkg / Universal / PropertiesTableAttributesDxe / PropertiesTableAttributesDxe.c
index 6e5c4f8fcd1e1b11e3e29e3f45e6d0088488b430..4d1a46f64cb4e921c14dca76fee4db5f20d61a16 100644 (file)
@@ -4,7 +4,7 @@
   This module sets EFI_MEMORY_XP for attributes of EfiACPIMemoryNVS and EfiReservedMemoryType\r
   in UEFI memory map, if and only of PropertiesTable is published and has BIT0 set.\r
 \r
-Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -131,6 +131,8 @@ UpdateMemoryAttributesDefault (
     goto Done;\r
   }\r
 \r
+  ASSERT (PropertiesTable != NULL);\r
+\r
   DEBUG ((EFI_D_INFO, "MemoryProtectionAttribute - 0x%016lx\n", PropertiesTable->MemoryProtectionAttribute));\r
   if ((PropertiesTable->MemoryProtectionAttribute & EFI_PROPERTIES_RUNTIME_MEMORY_PROTECTION_NON_EXECUTABLE_PE_DATA) == 0) {\r
     goto Done;\r