]> Gentwo Git Trees - linux/.git/commit
module: Remove module_assert_mutex_or_preempt() from try_add_tainted_module().
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Wed, 8 Jan 2025 09:04:38 +0000 (10:04 +0100)
committerPetr Pavlu <petr.pavlu@suse.com>
Mon, 17 Feb 2025 09:43:32 +0000 (10:43 +0100)
commit69e938adb161f424937499d6c18784494e44a96e
treeaf87d83821014fbe3241a7d5dc4ed5ec55a91966
parent0e2c77131c44beef876da3350089580812bc363f
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>
kernel/module/tracking.c