diff options
author | Brendan Jackman <Brendan.Jackman@arm.com> | 2014-02-11 22:43:36 +0000 |
---|---|---|
committer | jcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524> | 2014-02-11 22:43:36 +0000 |
commit | da92bf853f573d244278ab944720005598fa0450 (patch) | |
tree | 8465d9e1d94cf460a520030709b6b7817d914e9f /ShellPkg | |
parent | 0477054bc0f5c891a098280cffde0aed549262b3 (diff) | |
download | edk2-platforms-da92bf853f573d244278ab944720005598fa0450.tar.xz |
ShellPkg: Error out when ProcessCommandLine fails
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Brendan Jackman <Brendan.Jackman@arm.com>
Reviewed-by: Olivier Martin <olivier.martin@arm.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15222 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ShellPkg')
-rw-r--r-- | ShellPkg/Application/Shell/Shell.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ShellPkg/Application/Shell/Shell.c b/ShellPkg/Application/Shell/Shell.c index df101a32af..72d7516b28 100644 --- a/ShellPkg/Application/Shell/Shell.c +++ b/ShellPkg/Application/Shell/Shell.c @@ -359,7 +359,10 @@ UefiMain ( //
// Check the command line
//
- Status = ProcessCommandLine();
+ Status = ProcessCommandLine ();
+ if (EFI_ERROR (Status)) {
+ goto FreeResources;
+ }
//
// If shell support level is >= 1 create the mappings and paths
|