Commit 4743adaa authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] sparse: drivers/cpufreq annotation

drivers/cpufreq annotated
parent 2c37fa03
...@@ -206,7 +206,7 @@ cpufreq_sysctl(ctl_table *table, int __user *name, int nlen, ...@@ -206,7 +206,7 @@ cpufreq_sysctl(ctl_table *table, int __user *name, int nlen,
if (oldlen != sizeof(unsigned int)) if (oldlen != sizeof(unsigned int))
return -EINVAL; return -EINVAL;
if (put_user(cpufreq_get(cpu), (unsigned int *)oldval) || if (put_user(cpufreq_get(cpu), (unsigned int __user *)oldval) ||
put_user(sizeof(unsigned int), oldlenp)) put_user(sizeof(unsigned int), oldlenp))
return -EFAULT; return -EFAULT;
} }
...@@ -216,7 +216,7 @@ cpufreq_sysctl(ctl_table *table, int __user *name, int nlen, ...@@ -216,7 +216,7 @@ cpufreq_sysctl(ctl_table *table, int __user *name, int nlen,
if (newlen != sizeof(unsigned int)) if (newlen != sizeof(unsigned int))
return -EINVAL; return -EINVAL;
if (get_user(freq, (unsigned int *)newval)) if (get_user(freq, (unsigned int __user *)newval))
return -EFAULT; return -EFAULT;
cpufreq_set(freq, cpu); cpufreq_set(freq, cpu);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment