Commit e15f9409 authored by Kees Cook's avatar Kees Cook Committed by 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: default avatarKees Cook <keescook@chromium.org>
Signed-off-by: default avatarJon Mason <jdmason@kudzu.us>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment