Commit a9677bc0 authored by Kees Cook's avatar Kees Cook Committed by David S. Miller
Browse files

xen-netback: fix possible format string flaw

This makes sure a format string cannot accidentally leak into the
kthread_run() call.
Signed-off-by: default avatarKees Cook <>
Acked-by: default avatarIan Campbell <>
Signed-off-by: default avatarDavid S. Miller <>
parent b0dd663b
......@@ -406,7 +406,7 @@ int xenvif_connect(struct xenvif *vif, unsigned long tx_ring_ref,
vif->task = kthread_create(xenvif_kthread,
(void *)vif, vif->dev->name);
(void *)vif, "%s", vif->dev->name);
if (IS_ERR(vif->task)) {
pr_warn("Could not allocate kthread for %s\n", vif->dev->name);
err = PTR_ERR(vif->task);
Supports Markdown
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