audk/ShellPkg/Application/Shell
Michael D Kinney 592bf33a29 ShellPkg/Shell: Do not set end device path if already end
Update Shell Protocol EfiShellGetMapFromDevicePath() to not
set the end if the device path if it is already an end of
entire device path.  This removes a write operation that can
cause failures if the Device Path Protocol is mapped to
read-only memory.  In general Device Path Protocols should not
be modified unless the API explicitly states that the device
path is modified.

Cc: Ard Biesheuvel <ardb@kernel.org>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Zhichao Gao <zhichao.gao@intel.com>
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Zhichao Gao <zhichao.gao@intel.com>
2022-12-13 21:12:47 +00:00
..
ConsoleLogger.c ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
ConsoleLogger.h ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
ConsoleWrappers.c ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
ConsoleWrappers.h ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
FileHandleInternal.h ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
FileHandleWrappers.c ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
FileHandleWrappers.h ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Shell.c ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Shell.h ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Shell.inf ShellPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:25 -07:00
Shell.uni ShellPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:25 -07:00
ShellEnvVar.c ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
ShellEnvVar.h ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
ShellManParser.c ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
ShellManParser.h ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
ShellParametersProtocol.c ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
ShellParametersProtocol.h ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
ShellProtocol.c ShellPkg/Shell: Do not set end device path if already end 2022-12-13 21:12:47 +00:00
ShellProtocol.h ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00