projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82f5e5c
)
staging: xillybus: fix format string usage
author
Kees Cook
<
[email protected]
>
Wed, 11 Sep 2013 04:38:04 +0000
(21:38 -0700)
committer
Greg Kroah-Hartman
<
[email protected]
>
Tue, 17 Sep 2013 14:39:27 +0000
(07:39 -0700)
Makes sure format string cannot leak into device_create() call.
Signed-off-by: Kees Cook <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/staging/xillybus/xillybus_core.c
patch
|
blob
|
history
diff --git
a/drivers/staging/xillybus/xillybus_core.c
b/drivers/staging/xillybus/xillybus_core.c
index efc56987a60b53a0a409277da639a95b128f5304..7db6f03a00540cd8c2a131ab7039fec6251b72cc 100644
(file)
--- 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 "