]> git.hungrycats.org Git - linux/commitdiff
[PATCH] sparse: drivers/cpufreq annotation
authorAlexander Viro <viro@parcelfarce.linux.theplanet.co.uk>
Thu, 3 Jun 2004 13:27:10 +0000 (06:27 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 3 Jun 2004 13:27:10 +0000 (06:27 -0700)
drivers/cpufreq annotated

drivers/cpufreq/cpufreq_userspace.c

index 666c717906267d3872c06f55e825b5b0d7946aa2..5102144709559f351faa672c6b257fddfcc4a2d7 100644 (file)
@@ -206,7 +206,7 @@ cpufreq_sysctl(ctl_table *table, int __user *name, int nlen,
                if (oldlen != sizeof(unsigned int))
                        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))
                        return -EFAULT;
        }
@@ -216,7 +216,7 @@ cpufreq_sysctl(ctl_table *table, int __user *name, int nlen,
                if (newlen != sizeof(unsigned int))
                        return -EINVAL;
 
-               if (get_user(freq, (unsigned int *)newval))
+               if (get_user(freq, (unsigned int __user *)newval))
                        return -EFAULT;
 
                cpufreq_set(freq, cpu);