提交 e72b9da0 编写于 作者: K Kees Cook 提交者: Greg Kroah-Hartman

staging: xillybus: fix format string usage

Makes sure format string cannot leak into device_create() call.
Signed-off-by: NKees Cook <keescook@chromium.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 82f5e5ce
......@@ -2054,7 +2054,7 @@ static int xillybus_init_chrdev(struct xilly_endpoint *endpoint,
NULL,
MKDEV(major, i),
NULL,
devname);
"%s", devname);
if (IS_ERR(device)) {
pr_warn("xillybus: Failed to create %s "
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册