diff options
| author | Alexander Motin <mav@FreeBSD.org> | 2016-05-17 19:00:09 +0000 |
|---|---|---|
| committer | Alexander Motin <mav@FreeBSD.org> | 2016-05-17 19:00:09 +0000 |
| commit | 0f85a96bbfd2f28efe89c5aad609ed0cde4a5023 (patch) | |
| tree | 7659f53a2cb51fe197e16e8885fad237bc759809 /sys/dev/fb/vesa.c | |
| parent | 23f765d0c8d060d933efccab250ade34c4dc559f (diff) | |
Notes
Diffstat (limited to 'sys/dev/fb/vesa.c')
| -rw-r--r-- | sys/dev/fb/vesa.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/fb/vesa.c b/sys/dev/fb/vesa.c index 4ab83c30ff4b..bd6b759a0497 100644 --- a/sys/dev/fb/vesa.c +++ b/sys/dev/fb/vesa.c @@ -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); |
