Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 97811
b: refs/heads/master
c: 879000f
h: refs/heads/master
i:
  97809: 973508f
  97807: 74aaf57
v: v3
  • Loading branch information
CHIKAMA masaki authored and Linus Torvalds committed Jun 6, 2008
1 parent aa324f4 commit 0a9347f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 10732c35dff6c2e15e413e7806a7114a2faa0ecf
refs/heads/master: 879000f94442860e72c934f9e568989bc7fb8ec4
4 changes: 2 additions & 2 deletions trunk/drivers/cpufreq/cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ static ssize_t store_scaling_setspeed(struct cpufreq_policy *policy,
unsigned int freq = 0;
unsigned int ret;

if (!policy->governor->store_setspeed)
if (!policy->governor || !policy->governor->store_setspeed)
return -EINVAL;

ret = sscanf(buf, "%u", &freq);
Expand All @@ -639,7 +639,7 @@ static ssize_t store_scaling_setspeed(struct cpufreq_policy *policy,

static ssize_t show_scaling_setspeed(struct cpufreq_policy *policy, char *buf)
{
if (!policy->governor->show_setspeed)
if (!policy->governor || !policy->governor->show_setspeed)
return sprintf(buf, "<unsupported>\n");

return policy->governor->show_setspeed(policy, buf);
Expand Down

0 comments on commit 0a9347f

Please sign in to comment.