summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/drm_usb.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2013-01-24 06:12:41 (GMT)
committerDave Airlie <airlied@redhat.com>2013-02-07 02:37:19 (GMT)
commitae1287865f5361fa138d4d3b1b6277908b54eac9 (patch)
tree22a6b13cd030d5f0fe06ce85bbe8b40a2a519d59 /drivers/gpu/drm/drm_usb.c
parent2a2483072393b27f4336ab068a1f48ca19ff1c1e (diff)
downloadlinux-fsl-qoriq-ae1287865f5361fa138d4d3b1b6277908b54eac9.tar.xz
fbcon: don't lose the console font across generic->chip driver switch
If grub2 loads efifb/vesafb, then when systemd starts it can set the console font on that framebuffer device, however when we then load the native KMS driver, the first thing it does is tear down the generic framebuffer driver. The thing is the generic code is doing the right thing, it frees the font because otherwise it would leak memory. However we can assume that if you are removing the generic firmware driver (vesa/efi/offb), that a new driver *should* be loading soon after, so we effectively leak the font. However the old code left a dangling pointer in vc->vc_font.data and we can now reuse that dangling pointer to load the font into the new driver, now that we aren't freeing it. Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=892340 Cc: Kay Sievers <kay.sievers@vrfy.org> Cc: stable@vger.kernel.org Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/drm_usb.c')
0 files changed, 0 insertions, 0 deletions