block: request_module(): use format string
Avoid bad things happening if the module has a printk control string in its name. Signed-off-by: maximilian attems <max@stro.at> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
This commit is contained in:
parent
cc371e66e3
commit
e180f59493
|
@ -150,7 +150,7 @@ static struct elevator_type *elevator_get(const char *name)
|
|||
else
|
||||
sprintf(elv, "%s-iosched", name);
|
||||
|
||||
request_module(elv);
|
||||
request_module("%s", elv);
|
||||
spin_lock(&elv_list_lock);
|
||||
e = elevator_find(name);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue