summaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authormaximilian attems <max@stro.a>2008-07-01 09:42:47 +0200
committerJens Axboe <jens.axboe@oracle.com>2008-07-03 13:21:15 +0200
commite180f5949327e897bc35a816f4f4010186632df9 (patch)
treeb6ee35a51c00b811b87a925bbf7978c4db5538f3 /block
parentcc371e66e340f35eed8dc4651c7c18e754c7fb26 (diff)
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>
Diffstat (limited to 'block')
-rw-r--r--block/elevator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/elevator.c b/block/elevator.c
index 1f5bfe696026..ed6f8f32d27e 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);
}