taint: add explicit flag to show whether lock dep is still OK.
[deliverable/linux.git] / lib / bug.c
index a28c1415357cac9d30fc09195652fbfd099bc421..168603477f02889f13fd7119cc55f5e325b08ff9 100644 (file)
--- a/lib/bug.c
+++ b/lib/bug.c
@@ -55,6 +55,7 @@ static inline unsigned long bug_addr(const struct bug_entry *bug)
 }
 
 #ifdef CONFIG_MODULES
+/* Updates are protected by module mutex */
 static LIST_HEAD(module_bug_list);
 
 static const struct bug_entry *module_find_bug(unsigned long bugaddr)
@@ -165,7 +166,8 @@ enum bug_trap_type report_bug(unsigned long bugaddr, struct pt_regs *regs)
                print_modules();
                show_regs(regs);
                print_oops_end_marker();
-               add_taint(BUG_GET_TAINT(bug));
+               /* Just a warning, don't kill lockdep. */
+               add_taint(BUG_GET_TAINT(bug), LOCKDEP_STILL_OK);
                return BUG_TRAP_TYPE_WARN;
        }
 
This page took 0.028398 seconds and 5 git commands to generate.