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>
This commit is contained in:
Kees Cook 2013-09-10 21:38:04 -07:00 committed by Greg Kroah-Hartman
parent 82f5e5cea5
commit e72b9da083

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 "