Date: Tue, 17 May 2016 19:00:10 +0000 (UTC) From: Alexander Motin <mav@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r300072 - head/sys/dev/fb Message-ID: <201605171900.u4HJ0AHn047392@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605171900.u4HJ0AHn047392>