]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[serial] Don't enable serial console without serial support
authorShao Miller <sha0.miller@gmail.com>
Fri, 5 Oct 2012 14:14:12 +0000 (15:14 +0100)
committerMichael Brown <mcb30@ipxe.org>
Fri, 5 Oct 2012 14:18:57 +0000 (15:18 +0100)
commita712dae709adc76c76646fa1c86d2cfb5c3edfbc
tree246fe611b372b7ec0b86acba5b0354e88b6a6ab3
parentfcdfe817644c601f40a5435c03f16a46b5264ab1
[serial] Don't enable serial console without serial support

serial_console_init() would enable serial console support without
knowing if the serial driver succeeded or not.  As a result, the
serial console would interfere with a normal keyboard on a system
lacking serial support.

Reported-by: Jan ONDREJ (SAL) <ondrejj(at)salstar.sk>
Signed-off-by: Shao Miller <sha0.miller@gmail.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/core/serial.c
src/core/serial_console.c
src/include/ipxe/serial.h