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

Stewart Smith stewart at linux.vnet.ibm.com
Fri Nov 13 15:41:52 AEDT 2015


Samuel Mendoza-Jonas <sam.mj at au1.ibm.com> writes:

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


everybody should tihnk about how this was found after doing a release on
friday 13th.....



More information about the Skiboot mailing list