[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1213245993-9563-1-git-send-email-max@stro.at>
Date: Thu, 12 Jun 2008 06:46:33 +0200
From: maximilian attems <max@...o.at>
To: axboe@...nel.dk
Cc: linux-kernel@...r.kernel.org, maximilian attems <max@...o.at>
Subject: [PATCH] [BLOCK] request_module() use format string
similar to 326f6a5c9c9e1a62aec37bdc0c3f8d53adabe77b,
but protected with safte checks.
anyway seems cleaner and easier to exclude.
Signed-off-by: maximilian attems <max@...o.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists