mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 00:04:15 +08:00
sysrq: Restore original console_loglevel when sysrq disabled
The sysrq header line is printed with an increased loglevel to provide users some positive feedback. The original loglevel is not restored when the sysrq operation is disabled. This bug was introduced in 2.6.12 (pre-git-history) by the commit ("Allow admin to enable only some of the Magic-Sysrq functions"). Signed-off-by: Petr Mladek <pmladek@suse.com> Reviewed-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com> Reviewed-by: Steven Rostedt (VMware) <rostedt@goodmis.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
46dd6d779d
commit
075e1a0c50
@ -553,6 +553,7 @@ void __handle_sysrq(int key, bool check_mask)
|
|||||||
op_p->handler(key);
|
op_p->handler(key);
|
||||||
} else {
|
} else {
|
||||||
pr_cont("This sysrq operation is disabled.\n");
|
pr_cont("This sysrq operation is disabled.\n");
|
||||||
|
console_loglevel = orig_log_level;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
pr_cont("HELP : ");
|
pr_cont("HELP : ");
|
||||||
|
Loading…
Reference in New Issue
Block a user