diff options
author | Kees Cook <keescook@chromium.org> | 2015-07-24 23:35:59 (GMT) |
---|---|---|
committer | Jon Mason <jdmason@kudzu.us> | 2015-08-09 20:32:22 (GMT) |
commit | e15f940908e474da03349cb55a107fe89310a02c (patch) | |
tree | 53817c8cc2af18a7bfcd8c93a419b772cf7a5b6f /drivers | |
parent | 30a4bb1e5a9d7e283af6e29da09362104b67d7aa (diff) | |
download | linux-e15f940908e474da03349cb55a107fe89310a02c.tar.xz |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/ntb/ntb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ntb/ntb.c b/drivers/ntb/ntb.c index 23435f2..2e25307 100644 --- a/drivers/ntb/ntb.c +++ b/drivers/ntb/ntb.c @@ -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; |