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);
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"