Date: Sun, 24 Jan 2021 18:59:00 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 252833] panic changing vt font with gfx-enabled EFI loader Message-ID: <bug-252833-227-KxmTwwdsjA@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-252833-227@https.bugs.freebsd.org/bugzilla/> References: <bug-252833-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D252833 --- Comment #1 from Toomas Soome <tsoome@freebsd.org> --- (In reply to ben from comment #0) tsoome@freebsd:/usr/src % git diff diff --git a/sys/dev/vt/vt_core.c b/sys/dev/vt/vt_core.c index 2352ed823424..ac89d8635e78 100644 --- a/sys/dev/vt/vt_core.c +++ b/sys/dev/vt/vt_core.c @@ -1528,6 +1528,8 @@ parse_font_info(struct font_info *fi) ptr =3D roundup2(ptr, 8); vfp =3D &vt_font_loader; + /* This is default font, set refcount 1 to disable removal. */ + vfp->vf_refcount =3D 1; vfp->vf_height =3D fi->fi_height; vfp->vf_width =3D fi->fi_width; for (unsigned i =3D 0; i < VFNT_MAPS; i++) { tsoome@freebsd:/usr/src % This patch should fix it. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-252833-227-KxmTwwdsjA>