Skip to content

Commit 66d8529

Browse files
Zhen Leipmladek
authored andcommitted
livepatch: Add a missing newline character in klp_module_coming()
The error message is not printed immediately because it does not end with a newline character. Before: root@localhost:~# insmod vmlinux.ko insmod: ERROR: could not insert module vmlinux.ko: Invalid parameters After: root@localhost:~# insmod vmlinux.ko [ 43.982558] livepatch: vmlinux.ko: invalid module name insmod: ERROR: could not insert module vmlinux.ko: Invalid parameters Fixes: dcf550e ("livepatch: Disallow vmlinux.ko") Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com> Reviewed-by: Petr Mladek <pmladek@suse.com> Signed-off-by: Petr Mladek <pmladek@suse.com> Link: https://lore.kernel.org/r/20220830112855.749-1-thunder.leizhen@huawei.com
1 parent 747f7a2 commit 66d8529

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/livepatch/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1171,7 +1171,7 @@ int klp_module_coming(struct module *mod)
11711171
return -EINVAL;
11721172

11731173
if (!strcmp(mod->name, "vmlinux")) {
1174-
pr_err("vmlinux.ko: invalid module name");
1174+
pr_err("vmlinux.ko: invalid module name\n");
11751175
return -EINVAL;
11761176
}
11771177

0 commit comments

Comments
 (0)