History

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().

Sebastian Andrzej Siewior committed 1 year ago

Commit 435bbcc1 parent cdd93351 file · +0 −2Browse files

Showing the changes to kernel/module (1 of 1 file). Show all

Unified · Split

kernel/module/tracking.c+0−2
@@ -21,8 +21,6 @@ int try_add_tainted_module(struct module *mod) · 20 unmodified lines
21{21{
22 struct mod_unload_taint *mod_taint;22 struct mod_unload_taint *mod_taint;
23 23
24 module_assert_mutex_or_preempt();
25
26 if (!mod->taints)24 if (!mod->taints)
27 goto out;25 goto out;
28 26

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t