]> git.baikalelectronics.ru Git - kernel.git/commit
fbcon: when font is freed, clear also vc_font.data
authorMika Kuoppala <mika.kuoppala@linux.intel.com>
Mon, 22 Apr 2013 11:19:26 +0000 (14:19 +0300)
committerDave Airlie <airlied@redhat.com>
Wed, 24 Apr 2013 00:43:11 +0000 (10:43 +1000)
commit0e66e4af4fec716cfc1c9d760a78fba28eebb34d
tree1864961c00e7eb248316656d9e74cd4a7a44927c
parente19fc4db5946a811d6993e9789119e85b0e24385
fbcon: when font is freed, clear also vc_font.data

commit 647df77a5307bd4456d06980af42a001f18b30da
Author: Dave Airlie <airlied@redhat.com>
Date:   Thu Jan 24 16:12:41 2013 +1000

    fbcon: don't lose the console font across generic->chip driver switch

uses a pointer in vc->vc_font.data to load font into the new driver.
However if the font is actually freed, we need to clear the data
so that we don't reload font from dangling pointer.

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=892340
Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
Cc: stable@vger.kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/video/console/fbcon.c