]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
vt: parse_font_info_static should set refcount, not parse_font_info
authorToomas Soome <tsoome@FreeBSD.org>
Sun, 31 Jan 2021 21:04:59 +0000 (23:04 +0200)
committerToomas Soome <tsoome@FreeBSD.org>
Mon, 1 Feb 2021 22:33:58 +0000 (00:33 +0200)
commit1912d2b15e6d6f4a1d8c3886b03ab30d2f21f3fd
tree45e81c64b6e75b73a2383497c59a36be38012594
parent8fb966790e1c87276cc26932efee1b29c046cb8a
vt: parse_font_info_static should set refcount, not parse_font_info

As we get started with no memory allocator, we set up static font data
for font passed by loader (if there is any). At this time, we also must
set refcount 1, and refcount will get incremented in cnprobe() callback.

At some point the memory allocator will be available, and we will set up
properly allocated font data, but we should not disturb the refcount.

PR: 253147
sys/dev/vt/vt_core.c