summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2013-09-10 21:38:04 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-09-17 07:39:27 -0700
commite72b9da08319f6f4f86b0c93499cd522062c5e7b (patch)
treecb9ff2b9dd9e17746a12c0ab0c16749de62dc00b
parent82f5e5cea5da9c1488c4d6572dc85e352b1b5b29 (diff)
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 efc56987a60..7db6f03a005 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 "