Skip to content

Commit

Permalink
lk2nd: device: menu: Check if FB is actually initialized
Browse files Browse the repository at this point in the history
There is no fbcon_config if the display failed to initialize or if the
device is running without display (e.g. on DragonBoard 410c). Add a
check in display_fastboot_menu() that avoids crashing if that is the
case.
  • Loading branch information
stephan-gh committed Sep 23, 2023
1 parent 458a5ee commit 32ffef6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lk2nd/device/menu/menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ void display_fastboot_menu(void)
int y, y_menu, old_scale, incr;
unsigned int sel = 0, i;

if (!fb)
return;

/*
* Make sure the specified line lenght fits on the screen.
*/
Expand Down

0 comments on commit 32ffef6

Please sign in to comment.