diff options
author | Zefan Li <lizefan@huawei.com> | 2015-06-15 09:55:31 +0800 |
---|---|---|
committer | Zefan Li <lizefan@huawei.com> | 2015-06-15 09:55:31 +0800 |
commit | 046be03d11e7e75b8f2dda34d92e62cfbb259fd8 (patch) | |
tree | 0df34c01b17b2ce0805bfeaa9e0cd4faedd46a68 | |
parent | e4e96b06f14fb87a1ccbd849bc96367f8b2acda9 (diff) | |
download | linux-3.4.y-queue-046be03d11e7e75b8f2dda34d92e62cfbb259fd8.tar.gz |
Fix console-fix-console-name-size-mismatch.patch
-rw-r--r-- | patches/console-fix-console-name-size-mismatch.patch | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/patches/console-fix-console-name-size-mismatch.patch b/patches/console-fix-console-name-size-mismatch.patch index ab7feb6..9f42cc3 100644 --- a/patches/console-fix-console-name-size-mismatch.patch +++ b/patches/console-fix-console-name-size-mismatch.patch @@ -18,11 +18,20 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> - s/c->name/console_cmdline[i].name/] Signed-off-by: Zefan Li <lizefan@huawei.com> --- - kernel/printk.c | 1 + - 1 file changed, 1 insertion(+) + kernel/printk.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) --- a/kernel/printk.c +++ b/kernel/printk.c +@@ -126,7 +126,7 @@ static struct console *exclusive_console + */ + struct console_cmdline + { +- char name[8]; /* Name of the driver */ ++ char name[16]; /* Name of the driver */ + int index; /* Minor dev. to use */ + char *options; /* Options for the driver */ + #ifdef CONFIG_A11Y_BRAILLE_CONSOLE @@ -1498,6 +1498,7 @@ void register_console(struct console *ne */ for (i = 0; i < MAX_CMDLINECONSOLES && console_cmdline[i].name[0]; |