diff options
Diffstat (limited to 'EdkUnixPkg/Dxe')
-rw-r--r-- | EdkUnixPkg/Dxe/PlatformBds/Generic/BootMaint/ConsoleOption.c | 1 | ||||
-rw-r--r-- | EdkUnixPkg/Dxe/PlatformBds/Generic/BootMaint/Variable.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/EdkUnixPkg/Dxe/PlatformBds/Generic/BootMaint/ConsoleOption.c b/EdkUnixPkg/Dxe/PlatformBds/Generic/BootMaint/ConsoleOption.c index 297c2cfc55..9acacc8e72 100644 --- a/EdkUnixPkg/Dxe/PlatformBds/Generic/BootMaint/ConsoleOption.c +++ b/EdkUnixPkg/Dxe/PlatformBds/Generic/BootMaint/ConsoleOption.c @@ -175,6 +175,7 @@ ChangeVariableDevicePath ( &TerminalMenu,
Com
);
+ ASSERT (NewMenuEntry != NULL);
NewTerminalContext = (BM_TERMINAL_CONTEXT *) NewMenuEntry->VariableContext;
Uart = (UART_DEVICE_PATH *) Node;
CopyMem (
diff --git a/EdkUnixPkg/Dxe/PlatformBds/Generic/BootMaint/Variable.c b/EdkUnixPkg/Dxe/PlatformBds/Generic/BootMaint/Variable.c index c660e409db..454d192a2b 100644 --- a/EdkUnixPkg/Dxe/PlatformBds/Generic/BootMaint/Variable.c +++ b/EdkUnixPkg/Dxe/PlatformBds/Generic/BootMaint/Variable.c @@ -450,6 +450,7 @@ Var_UpdateConsoleOption ( NewTerminalContext->DevicePath,
(EFI_DEVICE_PATH_PROTOCOL *) &Vendor
);
+ ASSERT (TerminalDevicePath != NULL);
ChangeTerminalDevicePath (TerminalDevicePath, TRUE);
Temp = DevicePathToStr (TerminalDevicePath);
ConDevicePath = AppendDevicePathInstance (
|