From: Chris Wright Date: Sat, 7 Jun 2008 04:26:02 +0000 (-0700) Subject: [CPUFREQ] Fix format string bug. X-Git-Tag: v2.6.26-rc6~22^2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=326f6a5c9c9e1a62aec37bdc0c3f8d53adabe77b;p=linux-2.6-omap-h63xx.git [CPUFREQ] Fix format string bug. Format string bug. Not exploitable, as this is only writable by root, but worth fixing all the same. Spotted-by: Ilja van Sprundel Signed-off-by: Dave Jones --- diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index 86f0a243062..cc3baf10d2d 100644 --- a/drivers/cpufreq/cpufreq.c +++ b/drivers/cpufreq/cpufreq.c @@ -412,7 +412,7 @@ static int cpufreq_parse_governor(char *str_governor, unsigned int *policy, int ret; mutex_unlock(&cpufreq_governor_mutex); - ret = request_module(name); + ret = request_module("%s", name); mutex_lock(&cpufreq_governor_mutex); if (ret == 0)