commit | 66640777fed7a3c565b22816dcb32e29dd78b5aa | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Fri Jul 31 09:31:20 2015 -0600 |
committer | Simon Glass <sjg@chromium.org> | Wed Aug 05 08:42:40 2015 -0600 |
tree | 02b3649842a613a4d3566fdef5385af4c8819ebc | |
parent | 46766dffff08e7ed93db36b0a1f49b24aac4399f [diff] |
dm: serial: Correct logic in serial_find_console_or_panic() In a final attempt to find a console UART this function uses the first first available serial device. However the check for a valid device is inverted. This code is only executed when there is in fact no serial UART, but at present it can fail to reach the panic_str() call in this case, and start trying to use a non-existent UART. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>