diff options
author | Luis R. Rodriguez <mcgrof@kernel.org> | 2017-05-26 23:12:25 +0200 |
---|---|---|
committer | Jessica Yu <jeyu@kernel.org> | 2017-06-27 19:35:52 +0200 |
commit | 93437353daeff31bd5b11810daa4d2d509d1a64e (patch) | |
tree | 1bb910dc1930b0d8aa0d9509b3343ce9239f32a8 /kernel | |
parent | kernel/module.c: suppress warning about unused nowarn variable (diff) | |
download | linux-93437353daeff31bd5b11810daa4d2d509d1a64e.tar.xz linux-93437353daeff31bd5b11810daa4d2d509d1a64e.zip |
module: use list_for_each_entry_rcu() on find_module_all()
The module list has been using RCU in a lot of other calls
for a while now, we just overlooked changing this one over to
use RCU.
Signed-off-by: Luis R. Rodriguez <mcgrof@kernel.org>
Signed-off-by: Jessica Yu <jeyu@kernel.org>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/module.c b/kernel/module.c index f546d574f436..afc6ede7bcdf 100644 --- a/kernel/module.c +++ b/kernel/module.c @@ -603,7 +603,7 @@ static struct module *find_module_all(const char *name, size_t len, module_assert_mutex_or_preempt(); - list_for_each_entry(mod, &modules, list) { + list_for_each_entry_rcu(mod, &modules, list) { if (!even_unformed && mod->state == MODULE_STATE_UNFORMED) continue; if (strlen(mod->name) == len && !memcmp(mod->name, name, len)) |