]> git.baikalelectronics.ru Git - kernel.git/commit
livepatch: remove unnecessary call to klp_find_object_module()
authorJosh Poimboeuf <jpoimboe@redhat.com>
Tue, 3 Mar 2015 23:02:21 +0000 (17:02 -0600)
committerJiri Kosina <jkosina@suse.cz>
Wed, 4 Mar 2015 21:47:47 +0000 (22:47 +0100)
commit9753b1e27113c24f7970a82a380e4e6ce502bdf5
tree26b3d88715fd1fc78db8168265d63a09d4eb890c
parent7c86d60c5b9362d960525e95add7f3ed89d6f305
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>
kernel/livepatch/core.c