Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=6ae9200f2cab7b328e505fc9a7021db64e0590cf
Commit:     6ae9200f2cab7b328e505fc9a7021db64e0590cf
Parent:     19c5d45a09312ca20cd1f9df3fd1a87fe0cb8aac
Author:     Andrew Morton <[EMAIL PROTECTED]>
AuthorDate: Tue May 8 00:26:47 2007 -0700
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Tue May 8 11:15:04 2007 -0700

    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 <[EMAIL PROTECTED]>
    
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
---
 include/linux/console.h |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/include/linux/console.h b/include/linux/console.h
index de25ee3..fcc18e0 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 *);
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to