summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2013-09-11 06:38:04 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-09-17 16:39:27 +0200
commite72b9da08319f6f4f86b0c93499cd522062c5e7b (patch)
treecb9ff2b9dd9e17746a12c0ab0c16749de62dc00b
parentstaging: r8188eu: Fix uninitialized variable change_inx (diff)
downloadlinux-e72b9da08319f6f4f86b0c93499cd522062c5e7b.tar.xz
linux-e72b9da08319f6f4f86b0c93499cd522062c5e7b.zip
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>
-rw-r--r--drivers/staging/xillybus/xillybus_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/xillybus/xillybus_core.c b/drivers/staging/xillybus/xillybus_core.c
index efc56987a60b..7db6f03a0054 100644
--- a/drivers/staging/xillybus/xillybus_core.c
+++ b/drivers/staging/xillybus/xillybus_core.c
@@ -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 "