X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=net%2Fsctp%2Fsysctl.c;h=89fa20c73a5cc244fe8199101452bc606ca26b1c;hb=9213980e6a70d8473e0ffd4b39ab5b6caaba9ff5;hp=16f84b1e5fcbf63bdb7be4a65215b8b9ae1ccfc7;hpb=5273a3df6485dc2ad6aa7ddd441b9a21970f003b;p=linux-2.6.git diff --git a/net/sctp/sysctl.c b/net/sctp/sysctl.c index 16f84b1e5..89fa20c73 100644 --- a/net/sctp/sysctl.c +++ b/net/sctp/sysctl.c @@ -232,7 +232,7 @@ static int sctp_sysctl_jiffies_ms(ctl_table *table, int __user *name, int nlen, return -EINVAL; } if (put_user((*(int *)(table->data) * 1000) / HZ, - (int *)oldval) || + (int __user *)oldval) || (oldlenp && put_user(sizeof (int), oldlenp))) return -EFAULT; } @@ -242,7 +242,7 @@ static int sctp_sysctl_jiffies_ms(ctl_table *table, int __user *name, int nlen, if (newlen != sizeof (int)) return -EINVAL; - if (get_user(new, (int *)newval)) + if (get_user(new, (int __user *)newval)) return -EFAULT; *(int *)(table->data) = (new * HZ) / 1000;