svn commit: r300072 - head/sys/dev/fb
Alexander Motin
mav at FreeBSD.org
Tue May 17 19:00:11 UTC 2016
Author: mav
Date: Tue May 17 19:00:09 2016
New Revision: 300072
URL: https://svnweb.freebsd.org/changeset/base/300072
Log:
Fix NULL-dereference panic if VESA reports zero modes.
MFC after: 1 week
Modified:
head/sys/dev/fb/vesa.c
Modified: head/sys/dev/fb/vesa.c
==============================================================================
--- head/sys/dev/fb/vesa.c Tue May 17 18:42:38 2016 (r300071)
+++ head/sys/dev/fb/vesa.c Tue May 17 19:00:09 2016 (r300072)
@@ -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);
More information about the svn-src-head
mailing list