]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Network/SnpDxe/Snp.c
add security check.
[mirror_edk2.git] / MdeModulePkg / Universal / Network / SnpDxe / Snp.c
index 7e98baa8eb56bd3359cfb8b2d499958a99522fa9..213b724e5f6da7691df0fc338e3d9ba955f4189d 100644 (file)
@@ -1,5 +1,5 @@
 /** @file\r
-    Implementation of driver entry point and driver binding protocol.\r
+  Implementation of driver entry point and driver binding protocol.\r
  \r
 Copyright (c) 2004 - 2009, Intel Corporation. <BR> \r
 All rights reserved. This program and the accompanying materials are licensed \r
@@ -860,7 +860,7 @@ AddV2P (
   }\r
 \r
   *V2p = AllocatePool (sizeof (V2P));\r
-  if (*V2p != NULL) {\r
+  if (*V2p == NULL) {\r
     return EFI_OUT_OF_RESOURCES;\r
   }\r
 \r