diff options
author | maximilian attems <max@stro.a> | 2008-07-01 03:42:47 -0400 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2008-07-03 07:21:15 -0400 |
commit | e180f5949327e897bc35a816f4f4010186632df9 (patch) | |
tree | b6ee35a51c00b811b87a925bbf7978c4db5538f3 | |
parent | cc371e66e340f35eed8dc4651c7c18e754c7fb26 (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>
-rw-r--r-- | block/elevator.c | 2 |
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) | |||
150 | else | 150 | else |
151 | sprintf(elv, "%s-iosched", name); | 151 | sprintf(elv, "%s-iosched", name); |
152 | 152 | ||
153 | request_module(elv); | 153 | request_module("%s", elv); |
154 | spin_lock(&elv_list_lock); | 154 | spin_lock(&elv_list_lock); |
155 | e = elevator_find(name); | 155 | e = elevator_find(name); |
156 | } | 156 | } |