aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Mendoza-Jonas <sam.mj@au1.ibm.com>2015-11-13 15:33:04 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-11-13 15:35:34 +1100
commitf77b676c76ac89466df1ce8f61c1ac274a2dcc82 (patch)
treebd91b624d9c3dbae54b391e9017c9a6d5713c663
parent473049bd2d052b0bcde4e80a3fe82c6df4a932af (diff)
downloadskiboot-f77b676c76ac89466df1ce8f61c1ac274a2dcc82.zip
skiboot-f77b676c76ac89466df1ce8f61c1ac274a2dcc82.tar.gz
skiboot-f77b676c76ac89466df1ce8f61c1ac274a2dcc82.tar.bz2
core: Check con_driver is not NULL
Signed-off-by: Samuel Mendoza-Jonas <sam.mj@au1.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
-rw-r--r--core/console.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/console.c b/core/console.c
index f993237..1cee5da 100644
--- a/core/console.c
+++ b/core/console.c
@@ -292,7 +292,7 @@ ssize_t read(int fd __unused, void *buf, size_t req_count)
void flush_console_driver(void)
{
- if (con_driver->flush != NULL)
+ if (con_driver && con_driver->flush != NULL)
con_driver->flush();
}