X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdeModulePkg%2FCore%2FPiSmmCore%2FLocate.c;h=c174a4dd03b8e513d23987f00aba9b45052f5b5b;hp=a7220bae86af223744523db54eaf889a1cc36d11;hb=415fc5e5a4c98f84fd49277872fc49d37aa7e5a1;hpb=d65f7eeb4ca24f9ce9191f6fc6bd6c5d101c5731 diff --git a/MdeModulePkg/Core/PiSmmCore/Locate.c b/MdeModulePkg/Core/PiSmmCore/Locate.c index a7220bae86..c174a4dd03 100644 --- a/MdeModulePkg/Core/PiSmmCore/Locate.c +++ b/MdeModulePkg/Core/PiSmmCore/Locate.c @@ -1,7 +1,7 @@ /** @file Locate handle functions - Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.
+ Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -205,14 +205,10 @@ SmmLocateProtocol ( PROTOCOL_NOTIFY *ProtNotify; IHANDLE *Handle; - if (Interface == NULL) { + if ((Interface == NULL) || (Protocol == NULL)) { return EFI_INVALID_PARAMETER; } - if (Protocol == NULL) { - return EFI_NOT_FOUND; - } - *Interface = NULL; Status = EFI_SUCCESS;