From: Kees Cook Date: Tue, 11 Mar 2014 20:25:53 +0000 (-0300) Subject: [media] media: rc-core: use %s in rc_map_get() module load X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=8ea5488a919bbd49941584f773fd66623192ffc0;p=openwrt%2Fstaging%2Fblogic.git [media] media: rc-core: use %s in rc_map_get() module load rc_map_get() takes a single string literal for the module to load, so make sure it cannot be used as a format string in the call to request_module(). Signed-off-by: Kees Cook Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/rc/rc-main.c b/drivers/media/rc/rc-main.c index f87e0f0ee597..99697aae92ff 100644 --- a/drivers/media/rc/rc-main.c +++ b/drivers/media/rc/rc-main.c @@ -62,7 +62,7 @@ struct rc_map *rc_map_get(const char *name) map = seek_rc_map(name); #ifdef MODULE if (!map) { - int rc = request_module(name); + int rc = request_module("%s", name); if (rc < 0) { printk(KERN_ERR "Couldn't load IR keymap %s\n", name); return NULL;