[Skiboot] [PATCH] core: Check con_driver is not NULL

Samuel Mendoza-Jonas sam.mj at au1.ibm.com
Fri Nov 13 15:33:04 AEDT 2015


Signed-off-by: Samuel Mendoza-Jonas <sam.mj at au1.ibm.com>
---
 core/console.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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();
 }
 
-- 
2.6.2



More information about the Skiboot mailing list