summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2014-03-11 17:25:53 -0300
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-03-13 11:32:28 -0300
commit8ea5488a919bbd49941584f773fd66623192ffc0 (patch)
tree607aab2be59ccae6b93754e3456627afab75fd07
parent8ac43395677af08b03b3c5819f968db156a180d5 (diff)
downloadtalos-op-linux-8ea5488a919bbd49941584f773fd66623192ffc0.tar.gz
talos-op-linux-8ea5488a919bbd49941584f773fd66623192ffc0.zip
[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 <keescook@chromium.org> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
-rw-r--r--drivers/media/rc/rc-main.c2
1 files changed, 1 insertions, 1 deletions
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;
OpenPOWER on IntegriCloud