]> git.hungrycats.org Git - linux/commitdiff
CPUFREQ: Fix format string bug.
authorChris Wright <chrisw@sous-sol.org>
Sat, 7 Jun 2008 04:26:02 +0000 (21:26 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 16 Jun 2008 20:20:05 +0000 (13:20 -0700)
commit 326f6a5c9c9e1a62aec37bdc0c3f8d53adabe77b upstream

Format string bug.  Not exploitable, as this is only writable by root,
but worth fixing all the same.

From: Chris Wright <chrisw@sous-sol.org>
Spotted-by: Ilja van Sprundel <ilja@netric.org>
Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/cpufreq/cpufreq.c

index 99aa5f59c81e1a9d4cfb95817e456e967f9261d3..ebd68c1ab5970809192596bccbcf1757a9df78d9 100644 (file)
@@ -410,7 +410,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)