提交 068c4579 编写于 作者: I Ingo Molnar 提交者: Linus Torvalds

[PATCH] lockdep: do not touch console state when tainting the kernel

Remove an unintended console_verbose() side-effect from add_taint().
Signed-off-by: NIngo Molnar <mingo@elte.hu>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 471b40d0
...@@ -173,7 +173,7 @@ const char *print_tainted(void) ...@@ -173,7 +173,7 @@ const char *print_tainted(void)
void add_taint(unsigned flag) void add_taint(unsigned flag)
{ {
debug_locks_off(); /* can't trust the integrity of the kernel anymore */ debug_locks = 0; /* can't trust the integrity of the kernel anymore */
tainted |= flag; tainted |= flag;
} }
EXPORT_SYMBOL(add_taint); EXPORT_SYMBOL(add_taint);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册