diff options
author | Kees Cook <keescook@chromium.org> | 2014-03-11 17:25:53 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-03-13 11:32:28 -0300 |
commit | 8ea5488a919bbd49941584f773fd66623192ffc0 (patch) | |
tree | 607aab2be59ccae6b93754e3456627afab75fd07 | |
parent | 8ac43395677af08b03b3c5819f968db156a180d5 (diff) | |
download | talos-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.c | 2 |
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; |