audk/MdeModulePkg
Laszlo Ersek 5b080845a1 MdeModulePkg/RamDiskDxe: replace OpenFileByDevicePath() with UefiLib API
Replace the OpenFileByDevicePath() function with EfiOpenFileByDevicePath()
from UefiLib, correcting the following issues:

- imprecise comments on OpenFileByDevicePath(),
- code duplication between this module and other modules,
- local variable name "EfiSimpleFileSystemProtocol" starting with "Efi"
  prefix,
- bogus "FileHandle = NULL" assignments,
- passing a potentially unaligned "FILEPATH_DEVICE_PATH.PathName" field to
  a protocol member function (forbidden by the UEFI spec),
- leaking "Handle1" when the device path type/subtype check fails in the
  loop,
- stale SHELL_FILE_HANDLE reference in a comment.

Cc: Eric Dong <eric.dong@intel.com>
Cc: Jiaxin Wu <jiaxin.wu@intel.com>
Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Siyuan Fu <siyuan.fu@intel.com>
Cc: Star Zeng <star.zeng@intel.com>
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=1008
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
2018-08-16 20:02:50 +02:00
..
Application MdeModulePkg CapsuleApp: Check capsule header for -D and -N options 2018-07-27 16:04:16 +08:00
Bus MdeModulePkg/PciBusDxe: Fix small memory leak in FreePciDevice 2018-07-27 08:59:31 +08:00
Core MdeModulePkg/DxeCore: Not update RtCode in MemAttrTable after EndOfDxe 2018-07-26 22:51:27 +08:00
Include MdeModulePkg/PlatformBootManager: Add PlatformBootManagerUnableToBoot 2018-07-27 15:47:50 +08:00
Library MdeModulePkg: Remove DxeSmmPerformanceLib 2018-08-06 13:58:54 +08:00
Logo MdeModulePkg: Clean up source files 2018-06-28 11:19:45 +08:00
Universal MdeModulePkg/RamDiskDxe: replace OpenFileByDevicePath() with UefiLib API 2018-08-16 20:02:50 +02:00
MdeModulePkg.dec MdeModulePkg: Clean up source files 2018-06-28 11:19:45 +08:00
MdeModulePkg.dsc MdeModulePkg: Remove DxeSmmPerformanceLib 2018-08-06 13:58:54 +08:00
MdeModulePkg.uni MdeModulePkg/Variable/RuntimeDxe: introduce PcdMaxVolatileVariableSize 2018-03-30 21:17:07 +02:00
MdeModulePkgExtra.uni MdeModulePkg: Clean up source files 2018-06-28 11:19:45 +08:00