Revision: 13703
http://edk2.svn.sourceforge.net/edk2/?rev=13703&view=rev
Author: lzeng14
Date: 2012-09-06 05:00:34 +0000 (Thu, 06 Sep 2012)
Log Message:
-----------
Check the return code from CoreLocateDevicePath() in
MdeModulePkg/Core/Dxe/Image/Image.c CoreLoadImageCommon().
Signed-off-by: Star Zeng <[email protected]>
Reviewed-by: Liming Gao <[email protected]>
Modified Paths:
--------------
trunk/edk2/MdeModulePkg/Core/Dxe/Image/Image.c
Modified: trunk/edk2/MdeModulePkg/Core/Dxe/Image/Image.c
===================================================================
--- trunk/edk2/MdeModulePkg/Core/Dxe/Image/Image.c 2012-09-06 02:46:07 UTC
(rev 13702)
+++ trunk/edk2/MdeModulePkg/Core/Dxe/Image/Image.c 2012-09-06 05:00:34 UTC
(rev 13703)
@@ -1079,7 +1079,10 @@
if (SourceBuffer != NULL) {
FHand.Source = SourceBuffer;
FHand.SourceSize = SourceSize;
- CoreLocateDevicePath (&gEfiDevicePathProtocolGuid, &HandleFilePath,
&DeviceHandle);
+ Status = CoreLocateDevicePath (&gEfiDevicePathProtocolGuid,
&HandleFilePath, &DeviceHandle);
+ if (EFI_ERROR (Status)) {
+ DeviceHandle = NULL;
+ }
if (SourceSize > 0) {
Status = EFI_SUCCESS;
} else {
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits