git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
patch-2_6_7-vs1_9_1_12
[linux-2.6.git]
/
net
/
sctp
/
sysctl.c
diff --git
a/net/sctp/sysctl.c
b/net/sctp/sysctl.c
index
16f84b1
..
89fa20c
100644
(file)
--- 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,
return -EINVAL;
}
if (put_user((*(int *)(table->data) * 1000) / HZ,
- (int *)oldval) ||
+ (int
__user
*)oldval) ||
(oldlenp && put_user(sizeof (int), oldlenp)))
return -EFAULT;
}
(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 (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;
return -EFAULT;
*(int *)(table->data) = (new * HZ) / 1000;