diff options
author | Chris Wright <chrisw@sous-sol.org> | 2008-06-06 21:26:02 -0700 |
---|---|---|
committer | Dave Jones <davej@redhat.com> | 2008-06-09 13:24:55 -0400 |
commit | 326f6a5c9c9e1a62aec37bdc0c3f8d53adabe77b (patch) | |
tree | 9e9ba7c0279245ba7b93fc1bb409b4921c0a418d /drivers/cpufreq | |
parent | dca026139317dcbc642a30320d551f559692182f (diff) | |
download | linux-326f6a5c9c9e1a62aec37bdc0c3f8d53adabe77b.tar.bz2 |
[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')
-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) |