kdb: Check status of console prior to invoking handlers
authorSumit Garg <sumit.garg@linaro.org>
Thu, 4 Jun 2020 10:01:17 +0000 (15:31 +0530)
committerDaniel Thompson <daniel.thompson@linaro.org>
Thu, 25 Jun 2020 11:04:29 +0000 (12:04 +0100)
commite8857288bb620d594c94a219148d18562e52b06e
tree2df72cee89b082962593a0805c0329656bf9e351
parent9d71b344f86f4264a5fae43c997a630e93c0de9b
kdb: Check status of console prior to invoking handlers

Check if a console is enabled prior to invoking corresponding write
handler.

Suggested-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Signed-off-by: Sumit Garg <sumit.garg@linaro.org>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/1591264879-25920-3-git-send-email-sumit.garg@linaro.org
Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
kernel/debug/kdb/kdb_io.c