Commit 129858fa authored by Kees Cook's avatar Kees Cook Committed by David S. Miller

net: ethernet: wiznet: avoid format string exposure

While unlikely, this makes sure any format strings in the device name
can't exposure information via the resulting workqueue name.
Signed-off-by: default avatarKees Cook <keescook@chromium.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent df656bf6
...@@ -1152,7 +1152,8 @@ int w5100_probe(struct device *dev, const struct w5100_ops *ops, ...@@ -1152,7 +1152,8 @@ int w5100_probe(struct device *dev, const struct w5100_ops *ops,
if (err < 0) if (err < 0)
goto err_register; goto err_register;
priv->xfer_wq = alloc_workqueue(netdev_name(ndev), WQ_MEM_RECLAIM, 0); priv->xfer_wq = alloc_workqueue("%s", WQ_MEM_RECLAIM, 0,
netdev_name(ndev));
if (!priv->xfer_wq) { if (!priv->xfer_wq) {
err = -ENOMEM; err = -ENOMEM;
goto err_wq; goto err_wq;
......
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