diff options
author | Laszlo Ersek <lersek@redhat.com> | 2018-07-18 19:38:40 +0200 |
---|---|---|
committer | Laszlo Ersek <lersek@redhat.com> | 2018-08-16 20:02:50 +0200 |
commit | 5b080845a18fd6375bffc6837148534ddcc49f33 (patch) | |
tree | 2248523431a928237c64ff9a7176ce44ebe1e149 /BaseTools/Source/Python/Eot | |
parent | 29b0bf26aa959a44fb9f7d2c6faf91049c5a5286 (diff) | |
download | edk2-5b080845a18fd6375bffc6837148534ddcc49f33.tar.gz edk2-5b080845a18fd6375bffc6837148534ddcc49f33.tar.bz2 edk2-5b080845a18fd6375bffc6837148534ddcc49f33.zip |
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>
Diffstat (limited to 'BaseTools/Source/Python/Eot')
0 files changed, 0 insertions, 0 deletions