projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc371e6
)
block: request_module(): use format string
author
maximilian attems
<max@stro.a>
Tue, 1 Jul 2008 07:42:47 +0000
(09:42 +0200)
committer
Jens 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
patch
|
blob
|
blame
|
history
diff --git
a/block/elevator.c
b/block/elevator.c
index 1f5bfe6960266b602b5b2b97024f0d6d27da610e..ed6f8f32d27ee8d09f5c3673852d416bad228862 100644
(file)
--- 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);
}