mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-09 06:33:34 +00:00
ntb: avoid format string in dev_set_name
Avoid any chance of format string expansion when calling dev_set_name. Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Jon Mason <jdmason@kudzu.us>
This commit is contained in:
parent
30a4bb1e5a
commit
e15f940908
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user