Private->TextOutMode.Mode = (INT32) ModeNumber;\r
Private->DevNullColumns = Column;\r
Private->DevNullRows = Row;\r
-\r
- FreePool (Private->DevNullScreen);\r
+ \r
+ if (Private->DevNullScreen != NULL) {\r
+ FreePool (Private->DevNullScreen);\r
+ }\r
\r
Size = (Row * (Column + 1)) * sizeof (CHAR16);\r
Private->DevNullScreen = AllocateZeroPool (Size);\r
return EFI_OUT_OF_RESOURCES;\r
}\r
\r
- FreePool (Private->DevNullAttributes);\r
+ if (Private->DevNullAttributes != NULL) {\r
+ FreePool (Private->DevNullAttributes);\r
+ }\r
\r
Size = Row * Column * sizeof (INT32);\r
Private->DevNullAttributes = AllocateZeroPool (Size);\r
<GuidValue>9E863906-A40F-4875-977F-5B93FF237FC6</GuidValue>\r
<Version>1.0</Version>\r
<Abstract>Component description file for Terminal module.</Abstract>\r
- <Description>This driver installs Simple Text In/Out protocol for terminal devices.</Description>\r
+ <Description>This driver installs Simple Text In/Out protocol for terminal devices (serial devices or hotplug devices).</Description>\r
<Copyright>Copyright (c) 2006 - 2007, Intel Corporation</Copyright>\r
<License>All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r