diff options
author | Ruiyu Ni <ruiyu.ni@intel.com> | 2017-02-06 10:00:33 +0800 |
---|---|---|
committer | Ruiyu Ni <ruiyu.ni@intel.com> | 2017-02-08 17:46:31 +0800 |
commit | 00e39b0939574d7c2ce5dbd14f0aa2c1297e42fe (patch) | |
tree | 1098d6870a901fb89cb9077e05f0164137671e47 /StdLibPrivateInternalFiles | |
parent | cc20411062137e5d820a33db73d41f97dae74368 (diff) | |
download | edk2-00e39b0939574d7c2ce5dbd14f0aa2c1297e42fe.tar.gz edk2-00e39b0939574d7c2ce5dbd14f0aa2c1297e42fe.tar.bz2 edk2-00e39b0939574d7c2ce5dbd14f0aa2c1297e42fe.zip |
MdeModulePkg/UefiBootManagerLib: Initialize Handle before using it
BmExpandMediaDevicePath contains a bug that it uses the
uninitialized Handle.
Since the function is called when the Handle supports BlockIo
or SimpleFileSystem, when there is no SimpleFileSystem installed
on the Handle, BlockIo is *guaranteed* to be installed on the Handle.
The fix initializes the Handle by locating the BlockIo protocol
from the device path.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Jeff Fan <jeff.fan@intel.com>
Reviewed-by: Sunny Wang <sunnywang@hpe.com>
Diffstat (limited to 'StdLibPrivateInternalFiles')
0 files changed, 0 insertions, 0 deletions