Commit dc33faea authored by Rusty Russell's avatar Rusty Russell Committed by Linus Torvalds

[PATCH] Make rmmod -f taint kernel.

Somehow, the code which taints the kernel when rmmod -f is used got
lost.  Restore it.
parent 5a4aab32
......@@ -610,7 +610,10 @@ static void free_module(struct module *mod);
#ifdef CONFIG_MODULE_FORCE_UNLOAD
static inline int try_force(unsigned int flags)
{
return (flags & O_TRUNC);
int ret = (flags & O_TRUNC);
if (ret)
tainted |= TAINT_FORCED_MODULE;
return ret;
}
#else
static inline int try_force(unsigned int flags)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment