Skip to content

Commit 2cfe6c4

Browse files
rostedttorvalds
authored andcommitted
printk: Fix return of braille_register_console()
Some of my configs I test with have CONFIG_A11Y_BRAILLE_CONSOLE set. When I started testing against v3.11-rc4 my console went bonkers. Using ktest to bisect the issue, it came down to: commit bbeddf5 "printk: move braille console support into separate braille.[ch] files" Looking into the patch I found the problem. It's with the return of braille_register_console(). As anything other than NULL is considered a failure. But for those of us that have CONFIG_A11Y_BRAILLE_CONSOLE set but do not define a "brl" or "brl=" on the command line, we still may want a console that those with sight can still use. Return NULL (success) if "brl" or "brl=" is not on the console line. Signed-off-by: Steven Rostedt <rostedt@goodmis.org> Acked-by: Joe Perches <joe@perches.com> Cc: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 35114fc commit 2cfe6c4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎kernel/printk/braille.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ char *_braille_console_setup(char **str, char **brl_options)
1919
pr_err("need port name after brl=\n");
2020
else
2121
*((*str)++) = 0;
22-
}
22+
} else
23+
return NULL;
2324

2425
return *str;
2526
}

0 commit comments

Comments
 (0)