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

Commit 993c7bb7 authored by Neal Liu's avatar Neal Liu Committed by Alistair Delva
Browse files

ANDROID: modules: fix lockprove warning



Need to disable preemption before using rcu_dereference_sched().

Bug: 157383682
Change-Id: I5f7c0a222bac35c5fa58cdd9f4cf71cb422a01cd
Signed-off-by: default avatarNeal Liu <neal.liu@mediatek.com>
parent e330bec7
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -4171,8 +4171,10 @@ int module_kallsyms_on_each_symbol(int (*fn)(void *, const char *,
static void cfi_init(struct module *mod)
static void cfi_init(struct module *mod)
{
{
#ifdef CONFIG_CFI_CLANG
#ifdef CONFIG_CFI_CLANG
	preempt_disable();
	mod->cfi_check =
	mod->cfi_check =
		(cfi_check_fn)mod_find_symname(mod, CFI_CHECK_FN_NAME);
		(cfi_check_fn)mod_find_symname(mod, CFI_CHECK_FN_NAME);
	preempt_enable();
	cfi_module_add(mod, module_addr_min, module_addr_max);
	cfi_module_add(mod, module_addr_min, module_addr_max);
#endif
#endif
}
}