diff options
author | Kees Cook <keescook@chromium.org> | 2013-09-10 21:38:04 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-09-17 07:39:27 -0700 |
commit | e72b9da08319f6f4f86b0c93499cd522062c5e7b (patch) | |
tree | cb9ff2b9dd9e17746a12c0ab0c16749de62dc00b | |
parent | 82f5e5cea5da9c1488c4d6572dc85e352b1b5b29 (diff) | |
download | linux-e72b9da08319f6f4f86b0c93499cd522062c5e7b.tar.gz |
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.c | 2 |
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 " |