diff options
author | Kees Cook <keescook@chromium.org> | 2014-03-11 16:25:53 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-03-13 10:32:28 -0400 |
commit | 8ea5488a919bbd49941584f773fd66623192ffc0 (patch) | |
tree | 607aab2be59ccae6b93754e3456627afab75fd07 | |
parent | 8ac43395677af08b03b3c5819f968db156a180d5 (diff) |
[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) | |||
62 | map = seek_rc_map(name); | 62 | map = seek_rc_map(name); |
63 | #ifdef MODULE | 63 | #ifdef MODULE |
64 | if (!map) { | 64 | if (!map) { |
65 | int rc = request_module(name); | 65 | int rc = request_module("%s", name); |
66 | if (rc < 0) { | 66 | if (rc < 0) { |
67 | printk(KERN_ERR "Couldn't load IR keymap %s\n", name); | 67 | printk(KERN_ERR "Couldn't load IR keymap %s\n", name); |
68 | return NULL; | 68 | return NULL; |