video: console: Fix default font selection
authorOndrej Jirman <megi@xff.cz>
Thu, 25 May 2023 12:17:15 +0000 (14:17 +0200)
committerAnatolij Gustschin <agust@denx.de>
Fri, 14 Jul 2023 16:07:31 +0000 (18:07 +0200)
commit7a2fee8d29a92eadac3fc656d2686ccd20c24a08
tree014f12362fd61e4de37c9de7bcc21f9baef62187
parent8e21064cb3452950b09301baec06d86e37342471
video: console: Fix default font selection

Some callers expect to call this with NULL font name to select the
default font (eg. boot/scene.c). Without handling the NULL condition
U-Boot crashes instead of displaying a bootflow GUI menu.

Signed-off-by: Ondrej Jirman <megi@xff.cz>
Cc: Anatolij Gustschin <agust@denx.de>
drivers/video/console_core.c