Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e180f594 authored by maximilian attems's avatar maximilian attems Committed by Jens Axboe
Browse files

block: request_module(): use format string



Avoid bad things happening if the module has a printk control string in
its name.

Signed-off-by: default avatarmaximilian attems <max@stro.at>
Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
parent cc371e66
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
	}