mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Fix NULL-dereference panic if VESA reports zero modes.
MFC after: 1 week
This commit is contained in:
parent
23f765d0c8
commit
0f85a96bbf
1 changed files with 2 additions and 1 deletions
|
|
@ -1025,7 +1025,8 @@ vesa_bios_init(void)
|
|||
|
||||
++modes;
|
||||
}
|
||||
vesa_vmode[modes].vi_mode = EOT;
|
||||
if (vesa_vmode != NULL)
|
||||
vesa_vmode[modes].vi_mode = EOT;
|
||||
|
||||
if (bootverbose)
|
||||
printf("VESA: %d mode(s) found\n", modes);
|
||||
|
|
|
|||
Loading…
Reference in a new issue