Commit e180f594 authored by maximilian attems's avatar maximilian attems Committed by Jens Axboe

block: request_module(): use format string

Avoid bad things happening if the module has a printk control string in
its name.
Signed-off-by: default avatarmaximilian attems <max@stro.at>
Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
parent cc371e66
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment