sched/debug: Add taint on "BUG: Sleeping function called from invalid context"
[cascardo/linux.git] / kernel / sched / core.c
index a656816..3b6b23c 100644 (file)
@@ -7608,6 +7608,7 @@ void ___might_sleep(const char *file, int line, int preempt_offset)
                pr_cont("\n");
        }
        dump_stack();
+       add_taint(TAINT_WARN, LOCKDEP_STILL_OK);
 }
 EXPORT_SYMBOL(___might_sleep);
 #endif