mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue