]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Check the parameter before use it.
authorEric Dong <eric.dong@intel.com>
Tue, 1 Apr 2014 05:55:06 +0000 (05:55 +0000)
committerydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 1 Apr 2014 05:55:06 +0000 (05:55 +0000)
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Gao, Liming <liming,gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15425 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Core/Dxe/Hand/DriverSupport.c

index ded635632b33b175e5ce3ea2c855dd699febf712..92218ee7aaf39ca994616368ef5dd185b30a6357 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Support functions to connect/disconnect UEFI Driver model Protocol\r
 \r
-Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2014, 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
@@ -85,6 +85,7 @@ CoreConnectController (
     //\r
     Status = CoreHandleProtocol (ControllerHandle, &gEfiDevicePathProtocolGuid, (VOID **)&HandleFilePath);\r
     if (!EFI_ERROR (Status)) {\r
+      ASSERT (HandleFilePath != NULL);\r
       FilePath     = HandleFilePath;\r
       TempFilePath = NULL;\r
       if (RemainingDevicePath != NULL && !Recursive) {\r