X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdeModulePkg%2FUniversal%2FNetwork%2FSnpDxe%2FSnp.c;fp=MdeModulePkg%2FUniversal%2FNetwork%2FSnpDxe%2FSnp.c;h=213b724e5f6da7691df0fc338e3d9ba955f4189d;hb=894d038a8d0e99d456042e2b6d1554c4a406ea70;hp=7e98baa8eb56bd3359cfb8b2d499958a99522fa9;hpb=f2a064736dcea55b602e0e74607cb9b5b9f4a730;p=mirror_edk2.git diff --git a/MdeModulePkg/Universal/Network/SnpDxe/Snp.c b/MdeModulePkg/Universal/Network/SnpDxe/Snp.c index 7e98baa8eb..213b724e5f 100644 --- a/MdeModulePkg/Universal/Network/SnpDxe/Snp.c +++ b/MdeModulePkg/Universal/Network/SnpDxe/Snp.c @@ -1,5 +1,5 @@ /** @file - Implementation of driver entry point and driver binding protocol. + Implementation of driver entry point and driver binding protocol. Copyright (c) 2004 - 2009, Intel Corporation.
All rights reserved. This program and the accompanying materials are licensed @@ -860,7 +860,7 @@ AddV2P ( } *V2p = AllocatePool (sizeof (V2P)); - if (*V2p != NULL) { + if (*V2p == NULL) { return EFI_OUT_OF_RESOURCES; }