mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-29 04:45:05 +00:00
[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>
This commit is contained in:
parent
8ac4339567
commit
8ea5488a91
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user