summaryrefslogtreecommitdiff
path: root/kernel/livepatch
diff options
context:
space:
mode:
authorJosh Poimboeuf <jpoimboe@redhat.com>2015-03-03 17:02:21 -0600
committerJiri Kosina <jkosina@suse.cz>2015-03-04 22:47:47 +0100
commit2e3ac940f2754d7dc616aba1643a668954fe892f (patch)
tree26b3d88715fd1fc78db8168265d63a09d4eb890c /kernel/livepatch
parent0937e3b025f70e33f018aa55ee8d32b8731730a7 (diff)
downloadlinux-2e3ac940f2754d7dc616aba1643a668954fe892f.tar.gz
livepatch: remove unnecessary call to klp_find_object_module()
klp_find_object_module() is called from both the klp register and enable paths. Only the call from the register path is necessary because the module notifier will let us know if the patched module gets loaded or unloaded. Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com> Reviewed-by: Petr Mladek <pmladek@suse.cz> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'kernel/livepatch')
-rw-r--r--kernel/livepatch/core.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/livepatch/core.c b/kernel/livepatch/core.c
index 26df09d56f7c..d03d6134e824 100644
--- a/kernel/livepatch/core.c
+++ b/kernel/livepatch/core.c
@@ -511,8 +511,6 @@ static int __klp_enable_patch(struct klp_patch *patch)
pr_notice("enabling patch '%s'\n", patch->mod->name);
for (obj = patch->objs; obj->funcs; obj++) {
- klp_find_object_module(obj);
-
if (!klp_is_object_loaded(obj))
continue;