All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] [BLOCK] request_module() use format string
@ 2008-06-12  4:46 maximilian attems
  0 siblings, 0 replies; only message in thread
From: maximilian attems @ 2008-06-12  4:46 UTC (permalink / raw)
  To: axboe; +Cc: linux-kernel, maximilian attems

similar to 326f6a5c9c9e1a62aec37bdc0c3f8d53adabe77b,
but protected with safte checks.
anyway seems cleaner and easier to exclude.

Signed-off-by: maximilian attems <max@stro.at>
---
 block/elevator.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/block/elevator.c b/block/elevator.c
index 902dd13..a00eb38 100644
--- a/block/elevator.c
+++ b/block/elevator.c
@@ -144,7 +144,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);
 	}
-- 
1.5.5.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2008-06-12  4:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-12  4:46 [PATCH] [BLOCK] request_module() use format string maximilian attems

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.