1
0
Fork 0

staging: xillybus: fix format string usage

Makes sure format string cannot leak into device_create() call.

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
hifive-unleashed-5.1
Kees Cook 2013-09-10 21:38:04 -07:00 committed by Greg Kroah-Hartman
parent 82f5e5cea5
commit e72b9da083
1 changed files with 1 additions and 1 deletions

View File

@ -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 "