summaryrefslogtreecommitdiffstats
path: root/include/linux/console.h
diff options
context:
space:
mode:
authorAndrew Morton2007-05-08 09:26:47 +0200
committerLinus Torvalds2007-05-08 20:15:04 +0200
commit6ae9200f2cab7b328e505fc9a7021db64e0590cf (patch)
treef3516ed394d6439f22d669329b4f47a0751e1f84 /include/linux/console.h
parent/proc/*/oom_score oops re badness (diff)
downloadkernel-qcow2-linux-6ae9200f2cab7b328e505fc9a7021db64e0590cf.tar.gz
kernel-qcow2-linux-6ae9200f2cab7b328e505fc9a7021db64e0590cf.tar.xz
kernel-qcow2-linux-6ae9200f2cab7b328e505fc9a7021db64e0590cf.zip
enlarge console.name
console.name[] is eight chars, but so is "earlyvga". So when we try to print console->name when using earlyvga it runs off the end of the string. Make it bigger. Diagnosed-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/console.h')
-rw-r--r--include/linux/console.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/linux/console.h b/include/linux/console.h
index de25ee3b7919..fcc18e012e45 100644
--- a/include/linux/console.h
+++ b/include/linux/console.h
@@ -92,9 +92,8 @@ void give_up_console(const struct consw *sw);
#define CON_BOOT (8)
#define CON_ANYTIME (16) /* Safe to call when cpu is offline */
-struct console
-{
- char name[8];
+struct console {
+ char name[16];
void (*write)(struct console *, const char *, unsigned);
int (*read)(struct console *, char *, unsigned);
struct tty_driver *(*device)(struct console *, int *);