mirror of https://github.com/dynup/kpatch
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:
parent
35f34238b4
commit
625b98488d
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue