mirror of
https://github.com/torvalds/linux.git
synced 2025-04-09 14:45:27 +00:00
module: Remove module_assert_mutex_or_preempt() from try_add_tainted_module().
module_assert_mutex_or_preempt() is not needed in try_add_tainted_module(). The function checks for RCU-sched or the module_mutex to be acquired. The list_for_each_entry_rcu() below does the same check. Remove module_assert_mutex_or_preempt() from try_add_tainted_module(). Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lore.kernel.org/r/20250108090457.512198-10-bigeasy@linutronix.de Signed-off-by: Petr Pavlu <petr.pavlu@suse.com>
This commit is contained in:
parent
cdd9335c13
commit
435bbcc3be
@ -21,8 +21,6 @@ int try_add_tainted_module(struct module *mod)
|
||||
{
|
||||
struct mod_unload_taint *mod_taint;
|
||||
|
||||
module_assert_mutex_or_preempt();
|
||||
|
||||
if (!mod->taints)
|
||||
goto out;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user