diff options
author | maximilian attems <max@stro.a> | 2008-07-01 09:42:47 +0200 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2008-07-03 13:21:15 +0200 |
commit | e180f5949327e897bc35a816f4f4010186632df9 (patch) | |
tree | b6ee35a51c00b811b87a925bbf7978c4db5538f3 /block | |
parent | cc371e66e340f35eed8dc4651c7c18e754c7fb26 (diff) | |
download | op-kernel-dev-e180f5949327e897bc35a816f4f4010186632df9.zip op-kernel-dev-e180f5949327e897bc35a816f4f4010186632df9.tar.gz |
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.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); } |