提交 e15f9409 编写于 作者: K Kees Cook 提交者: Jon Mason

ntb: avoid format string in dev_set_name

Avoid any chance of format string expansion when calling dev_set_name.
Signed-off-by: NKees Cook <keescook@chromium.org>
Signed-off-by: NJon Mason <jdmason@kudzu.us>
上级 30a4bb1e
......@@ -114,7 +114,7 @@ int ntb_register_device(struct ntb_dev *ntb)
ntb->dev.bus = &ntb_bus;
ntb->dev.parent = &ntb->pdev->dev;
ntb->dev.release = ntb_dev_release;
dev_set_name(&ntb->dev, pci_name(ntb->pdev));
dev_set_name(&ntb->dev, "%s", pci_name(ntb->pdev));
ntb->ctx = NULL;
ntb->ctx_ops = NULL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册