summaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq/cpufreq.c
diff options
context:
space:
mode:
authorChris Wright <chrisw@sous-sol.org>2008-06-06 21:26:02 -0700
committerDave Jones <davej@redhat.com>2008-06-09 13:24:55 -0400
commit326f6a5c9c9e1a62aec37bdc0c3f8d53adabe77b (patch)
tree9e9ba7c0279245ba7b93fc1bb409b4921c0a418d /drivers/cpufreq/cpufreq.c
parentdca026139317dcbc642a30320d551f559692182f (diff)
downloadop-kernel-dev-326f6a5c9c9e1a62aec37bdc0c3f8d53adabe77b.zip
op-kernel-dev-326f6a5c9c9e1a62aec37bdc0c3f8d53adabe77b.tar.gz
[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 <ilja@netric.org> Signed-off-by: Dave Jones <davej@redhat.com>
Diffstat (limited to 'drivers/cpufreq/cpufreq.c')
-rw-r--r--drivers/cpufreq/cpufreq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c
index 86f0a24..cc3baf10 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)
OpenPOWER on IntegriCloud