]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[CPUFREQ] Fix format string bug.
authorChris Wright <chrisw@sous-sol.org>
Sat, 7 Jun 2008 04:26:02 +0000 (21:26 -0700)
committerDave Jones <davej@redhat.com>
Mon, 9 Jun 2008 17:24:55 +0000 (13:24 -0400)
Format string bug.  Not exploitable, as this is only writable by root,
but worth fixing all the same.

Spotted-by: Ilja van Sprundel <ilja@netric.org>
Signed-off-by: Dave Jones <davej@redhat.com>
drivers/cpufreq/cpufreq.c

index 86f0a24306246400d46694f3c38ad604fdd5df99..cc3baf10d2d0d7b11b9cb5a25d4d86c7ade21db2 100644 (file)
@@ -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)