]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/video/fbdev/core/fbcon.c
vt/fbcon: deinitialize resources in visual_init() after failed memory allocation
[mirror_ubuntu-bionic-kernel.git] / drivers / video / fbdev / core / fbcon.c
index dd24b369df994a5737a1a1bbe840801a3a058176..9d00d301976931ad1a62570bc27a4e32132dbf32 100644 (file)
@@ -1216,7 +1216,7 @@ finished:
        if (free_font)
                vc->vc_font.data = NULL;
 
-       if (vc->vc_hi_font_mask)
+       if (vc->vc_hi_font_mask && vc->vc_screenbuf)
                set_vc_hi_font(vc, false);
 
        if (!con_is_bound(&fb_con))