Skip to content

Commit

Permalink
[CPUFREQ] Fix format string bug.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Chris Wright authored and Dave Jones committed Jun 9, 2008
1 parent dca0261 commit 326f6a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/cpufreq/cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 326f6a5

Please sign in to comment.