diff options
author | Chris Wright <chrisw@sous-sol.org> | 2008-06-07 06:26:02 +0200 |
---|---|---|
committer | Dave Jones <davej@redhat.com> | 2008-06-09 19:24:55 +0200 |
commit | 326f6a5c9c9e1a62aec37bdc0c3f8d53adabe77b (patch) | |
tree | 9e9ba7c0279245ba7b93fc1bb409b4921c0a418d /drivers/cpufreq/cpufreq.c | |
parent | [CPUFREQ] fix double unlock of cpu_policy_rwsem in drivers/cpufreq/cpufreq.c (diff) | |
download | linux-326f6a5c9c9e1a62aec37bdc0c3f8d53adabe77b.tar.xz linux-326f6a5c9c9e1a62aec37bdc0c3f8d53adabe77b.zip |
[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 '')
-rw-r--r-- | drivers/cpufreq/cpufreq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index 86f0a2430624..cc3baf10d2d0 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) |