From: maximilian attems Date: Tue, 1 Jul 2008 07:42:47 +0000 (+0200) Subject: block: request_module(): use format string X-Git-Tag: v2.6.27-rc1~1114^2~12 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=e180f5949327e897bc35a816f4f4010186632df9;p=linux-2.6-omap-h63xx.git 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 Signed-off-by: Jens Axboe --- diff --git a/block/elevator.c b/block/elevator.c index 1f5bfe69602..ed6f8f32d27 100644 --- a/block/elevator.c +++ b/block/elevator.c @@ -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); }