block: request_module(): use format string
authormaximilian attems <max@stro.a>
Tue, 1 Jul 2008 07:42:47 +0000 (09:42 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 3 Jul 2008 11:21:15 +0000 (13:21 +0200)
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>
block/elevator.c

index 1f5bfe6960266b602b5b2b97024f0d6d27da610e..ed6f8f32d27ee8d09f5c3673852d416bad228862 100644 (file)
@@ -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);
        }