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:
maximilian attems 2008-07-01 09:42:47 +02:00 committed by Jens Axboe
parent cc371e66e3
commit e180f59493

View file

@ -150,7 +150,7 @@ static struct elevator_type *elevator_get(const char *name)
else else
sprintf(elv, "%s-iosched", name); sprintf(elv, "%s-iosched", name);
request_module(elv); request_module("%s", elv);
spin_lock(&elv_list_lock); spin_lock(&elv_list_lock);
e = elevator_find(name); e = elevator_find(name);
} }