Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 93437353 authored by Luis R. Rodriguez's avatar Luis R. Rodriguez Committed by Jessica Yu
Browse files

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: default avatarLuis R. Rodriguez <mcgrof@kernel.org>
Signed-off-by: default avatarJessica Yu <jeyu@kernel.org>
parent 1ba5c08b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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))