]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
pktgen: fix error message with wrong function name
authorLeesoo Ahn <dev@ooseel.net>
Tue, 1 Sep 2020 13:04:47 +0000 (22:04 +0900)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Sep 2020 18:44:53 +0000 (11:44 -0700)
Error on calling kthread_create_on_node prints wrong function name,
kernel_thread.

Fixes: 94dcf29a11b3 ("kthread: use kthread_create_on_node()")
Signed-off-by: Leesoo Ahn <dev@ooseel.net>
Acked-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/pktgen.c

index b53b6d38c4dff8b73423f19d7efc84b00166f136..fce968b673b30b00c6ae8ed3416db47311e20f47 100644 (file)
@@ -3699,7 +3699,7 @@ static int __net_init pktgen_create_thread(int cpu, struct pktgen_net *pn)
                                   cpu_to_node(cpu),
                                   "kpktgend_%d", cpu);
        if (IS_ERR(p)) {
-               pr_err("kernel_thread() failed for cpu %d\n", t->cpu);
+               pr_err("kthread_create_on_node() failed for cpu %d\n", t->cpu);
                list_del(&t->th_list);
                kfree(t);
                return PTR_ERR(p);