diff options
author | Sergey Senozhatsky <sergey.senozhatsky@gmail.com> | 2016-03-18 00:21:27 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-03-18 01:09:34 +0300 |
commit | adaf6590ee7db23c3a124fb9f213c90c15cecf96 (patch) | |
tree | 40b3a1fc2ba5871dab98e0200eae76c09a72156a /Documentation/kdump | |
parent | 6b97a20d3a7909daa06625d4440c2c52d7bf08d7 (diff) | |
download | linux-adaf6590ee7db23c3a124fb9f213c90c15cecf96.tar.xz |
printk: check CON_ENABLED in have_callable_console()
have_callable_console() must also test CON_ENABLED bit, not just
CON_ANYTIME. We may have disabled CON_ANYTIME console so printk can
wrongly assume that it's safe to call_console_drivers().
Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Cc: Jan Kara <jack@suse.com>
Cc: Tejun Heo <tj@kernel.org>
Cc: Kyle McMartin <kyle@kernel.org>
Cc: Dave Jones <davej@codemonkey.org.uk>
Cc: Calvin Owens <calvinowens@fb.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation/kdump')
0 files changed, 0 insertions, 0 deletions