]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
3.8-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 May 2013 03:52:09 +0000 (20:52 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 May 2013 03:52:09 +0000 (20:52 -0700)
added patches:
fbcon-when-font-is-freed-clear-also-vc_font.data.patch

queue-3.8/fbcon-when-font-is-freed-clear-also-vc_font.data.patch [new file with mode: 0644]
queue-3.8/series

diff --git a/queue-3.8/fbcon-when-font-is-freed-clear-also-vc_font.data.patch b/queue-3.8/fbcon-when-font-is-freed-clear-also-vc_font.data.patch
new file mode 100644 (file)
index 0000000..7818c0d
--- /dev/null
@@ -0,0 +1,39 @@
+From e6637d5427d2af9f3f33b95447bfc5347e5ccd85 Mon Sep 17 00:00:00 2001
+From: Mika Kuoppala <mika.kuoppala@linux.intel.com>
+Date: Mon, 22 Apr 2013 14:19:26 +0300
+Subject: fbcon: when font is freed, clear also vc_font.data
+
+From: Mika Kuoppala <mika.kuoppala@linux.intel.com>
+
+commit e6637d5427d2af9f3f33b95447bfc5347e5ccd85 upstream.
+
+commit ae1287865f5361fa138d4d3b1b6277908b54eac9
+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>
+Signed-off-by: Dave Airlie <airlied@redhat.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ drivers/video/console/fbcon.c |    2 ++
+ 1 file changed, 2 insertions(+)
+
+--- a/drivers/video/console/fbcon.c
++++ b/drivers/video/console/fbcon.c
+@@ -1228,6 +1228,8 @@ static void fbcon_deinit(struct vc_data
+ finished:
+       fbcon_free_font(p, free_font);
++      if (free_font)
++              vc->vc_font.data = NULL;
+       if (!con_is_bound(&fb_con))
+               fbcon_exit();
index edf959a41bf9ce254f377b3493b167f43c3429a2..e087ba16bbdbc7c3491f3b4a36d6088fbebbd77c 100644 (file)
@@ -34,3 +34,4 @@ serial_core.c-add-put_device-after-device_find_child.patch
 arm-set-the-page-table-freeing-ceiling-to-task_size.patch
 gianfar-do-not-advertise-any-alarm-capability.patch
 tty-fix-up-atime-mtime-mess-take-three.patch
+fbcon-when-font-is-freed-clear-also-vc_font.data.patch