summaryrefslogtreecommitdiff
path: root/tdm/xivo_tdm.c
diff options
context:
space:
mode:
Diffstat (limited to 'tdm/xivo_tdm.c')
-rw-r--r--tdm/xivo_tdm.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/tdm/xivo_tdm.c b/tdm/xivo_tdm.c
index f48366d..28cf9be 100644
--- a/tdm/xivo_tdm.c
+++ b/tdm/xivo_tdm.c
@@ -1500,10 +1500,20 @@ static enum hrtimer_restart debug_trace(struct hrtimer *timer)
#endif /* DEBUGFS_MY_STUFF */
+
+static inline void my_add_taint_module(struct module *mod, unsigned flag)
+{
+ add_taint(flag);
+ mod->taints |= (1U << flag);
+}
+
+
static int __init xivo_tdm_init(void)
{
int rc;
+ my_add_taint_module(THIS_MODULE, TAINT_CRAP);
+
#ifdef DEBUGFS_MY_STUFF
spin_lock_init(&debug_lock);
debug_index = -1;