Commit 355db391 authored by Leesoo Ahn's avatar Leesoo Ahn Committed by David S. Miller

pktgen: fix error message with wrong function name

Error on calling kthread_create_on_node prints wrong function name,
kernel_thread.

Fixes: 94dcf29a ("kthread: use kthread_create_on_node()")
Signed-off-by: default avatarLeesoo Ahn <dev@ooseel.net>
Acked-by: default avatarGustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c2f89219
...@@ -3699,7 +3699,7 @@ static int __net_init pktgen_create_thread(int cpu, struct pktgen_net *pn) ...@@ -3699,7 +3699,7 @@ static int __net_init pktgen_create_thread(int cpu, struct pktgen_net *pn)
cpu_to_node(cpu), cpu_to_node(cpu),
"kpktgend_%d", cpu); "kpktgend_%d", cpu);
if (IS_ERR(p)) { 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); list_del(&t->th_list);
kfree(t); kfree(t);
return PTR_ERR(p); return PTR_ERR(p);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment