[Bug 252833] panic changing vt font with gfx-enabled EFI loader

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Jan 24 18:59:00 UTC 2021


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252833

--- Comment #1 from Toomas Soome <tsoome at freebsd.org> ---
(In reply to ben from comment #0)
tsoome at 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 at freebsd:/usr/src %

This patch should fix it.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list