summaryrefslogtreecommitdiffstats
path: root/drivers/staging
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 /drivers/staging
parent82f5e5cea5da9c1488c4d6572dc85e352b1b5b29 (diff)
downloadblackbird-op-linux-e72b9da08319f6f4f86b0c93499cd522062c5e7b.tar.gz
blackbird-op-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>
Diffstat (limited to 'drivers/staging')
-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 "
OpenPOWER on IntegriCloud