Fix NULL-dereference panic if VESA reports zero modes.
MFC after: 1 week
This commit is contained in:
parent
002c0ad487
commit
0218beaccb
@ -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…
x
Reference in New Issue
Block a user