summaryrefslogtreecommitdiff
path: root/ArmPlatformPkg
diff options
context:
space:
mode:
authorStar Zeng <star.zeng@intel.com>2015-11-30 03:15:41 +0000
committervanjeff <vanjeff@Edk2>2015-11-30 03:15:41 +0000
commit5b57cac303683249163eb55e6a8bce30ff03a6d3 (patch)
treeb80e6b58857e81a8279f6324821e83b668fdbb93 /ArmPlatformPkg
parent714246d34b1f6541d9294e501b01f05083794876 (diff)
downloadedk2-platforms-5b57cac303683249163eb55e6a8bce30ff03a6d3.tar.xz
MdeModulePkg: TerminalDxe: avoid checking uninitialized variable
The SerialIo->GetControl() function is not required to set the Control output parameter on error. Make sure we apply the EFI_SERIAL_INPUT_BUFFER_EMPTY optimization in TerminalConInTimerHandler() only if the SerialIo->GetControl() function call set that bit in the Control variable. (Sync patch r18962 from main trunk.) Cc: Michael D Kinney <michael.d.kinney@intel.com> Cc: Liming Gao <liming.gao@intel.com> Cc: Feng Tian <feng.tian@intel.com> Cc: Laszlo Ersek <lersek@redhat.com> Contributed-under: TianoCore Contribution Agreement 1.0 Suggested-by: Laszlo Ersek <lersek@redhat.com> Signed-off-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Michael Kinney <michael.d.kinney@intel.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/branches/UDK2015@19012 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ArmPlatformPkg')
0 files changed, 0 insertions, 0 deletions