OSDN Git Service

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)
commit2e3ac940f2754d7dc616aba1643a668954fe892f
tree26b3d88715fd1fc78db8168265d63a09d4eb890c
parent0937e3b025f70e33f018aa55ee8d32b8731730a7
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