kmod/core: fix unloaded module 'vmlinux' error

Fix the following error:

  [  344.564905] kpatch: delaying patch of unloaded module 'vmlinux'
This commit is contained in:
Josh Poimboeuf 2014-06-19 10:39:14 -05:00
parent 35f34238b4
commit 625b98488d
1 changed files with 1 additions and 1 deletions

View File

@ -764,7 +764,7 @@ int kpatch_register(struct kpatch_module *kpmod, bool replace)
if (ret)
goto err_unlink;
if (!object->mod) {
if (!kpatch_object_linked(object)) {
pr_notice("delaying patch of unloaded module '%s'\n",
object->name);
continue;