提交 e180f594 编写于 作者: M maximilian attems 提交者: 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: Nmaximilian attems <max@stro.at>
Signed-off-by: NJens Axboe <jens.axboe@oracle.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册