Skip to contentSkip to conversation

staging: xillybus: fix format string usage

PATCH New Kees Cook 1 participant 1 message Sep 11, 2013 Staging

lore
Share & tools
lore

Kees Cook

author
#0 lore raw

PATCH 1/1 staging: xillybus: fix format string usage

Makes sure format string cannot leak into device_create() call.

---
 drivers/staging/xillybus/xillybus_core.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/xillybus/xillybus_core.c +1 -1
index efc5698..7db6f03 100644
@@ -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 "
Signature · 6 lines
1.7.9.5


-- 
Kees Cook
Chrome OS Security