Merge tag 'livepatching-for-5.17' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-2.6-block.git] / kernel / module.c
index 84a9141a5e159a01642c6a67e4250e016de39797..24fc305afe959d4a9f4b5e8ac1ca2166dc9b1d4b 100644 (file)
@@ -4499,6 +4499,8 @@ int module_kallsyms_on_each_symbol(int (*fn)(void *, const char *,
                                 mod, kallsyms_symbol_value(sym));
                        if (ret != 0)
                                goto out;
+
+                       cond_resched();
                }
        }
 out: