Skip to content

Commit

Permalink
block: request_module(): use format string
Browse files Browse the repository at this point in the history
Avoid bad things happening if the module has a printk control string in
its name.

Signed-off-by: maximilian attems <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
maximilian attems authored and Jens Axboe committed Jul 3, 2008
1 parent cc371e6 commit e180f59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion block/elevator.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit e180f59

Please sign in to comment.