“20880e8936e467fe30d79aa838c8d24b7073648f”上不存在“net/mac80211/rate.c”
提交 93437353 编写于 作者: L Luis R. Rodriguez 提交者: Jessica Yu

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: NLuis R. Rodriguez <mcgrof@kernel.org>
Signed-off-by: NJessica Yu <jeyu@kernel.org>
上级 1ba5c08b
...@@ -603,7 +603,7 @@ static struct module *find_module_all(const char *name, size_t len, ...@@ -603,7 +603,7 @@ static struct module *find_module_all(const char *name, size_t len,
module_assert_mutex_or_preempt(); 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) if (!even_unformed && mod->state == MODULE_STATE_UNFORMED)
continue; continue;
if (strlen(mod->name) == len && !memcmp(mod->name, name, len)) if (strlen(mod->name) == len && !memcmp(mod->name, name, len))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册