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/>
index | next in thread | previous in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252833 --- 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 = roundup2(ptr, 8); vfp = &vt_font_loader; + /* This is default font, set refcount 1 to disable removal. */ + vfp->vf_refcount = 1; vfp->vf_height = fi->fi_height; vfp->vf_width = fi->fi_width; for (unsigned i = 0; i < VFNT_MAPS; i++) { tsoome@freebsd:/usr/src % This patch should fix it. -- You are receiving this mail because: You are the assignee for the bug.help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-252833-227-KxmTwwdsjA>
