Commit e72b9da0 authored by Kees Cook's avatar Kees Cook Committed by Greg Kroah-Hartman

staging: xillybus: fix format string usage

Makes sure format string cannot leak into device_create() call.
Signed-off-by: default avatarKees Cook <keescook@chromium.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment