diff options
author | maximilian attems <max@stro.a> | 2008-07-01 07:42:47 (GMT) |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2008-07-03 11:21:15 (GMT) |
commit | e180f5949327e897bc35a816f4f4010186632df9 (patch) | |
tree | b6ee35a51c00b811b87a925bbf7978c4db5538f3 | |
parent | cc371e66e340f35eed8dc4651c7c18e754c7fb26 (diff) | |
download | linux-e180f5949327e897bc35a816f4f4010186632df9.tar.xz |
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 1f5bfe6..ed6f8f3 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); } |