mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-05 19:31:57 -04:00
tcp: fix an incorrect __user annotation on tcp_proc_delayed_ack_control
No user pointers for sysctls anymore.
Fixes: c3f877ec98a12 ("BACKPORT: sysctl: pass kernel pointers to ->proc_handler")
Change-Id: Ie7d47a3bb5ed4238cea83a493937f38a3fee2571
Signed-off-by: Tashfin Shakeer Rhythm <tashfinshakeerrhythm@gmail.com>
This commit is contained in:
parent
ad10207c9d
commit
a1535b0667
2 changed files with 2 additions and 2 deletions
|
|
@ -359,7 +359,7 @@ extern int tcp_use_userconfig_sysctl_handler(struct ctl_table *table,
|
|||
int write, void __user *buffer, size_t *length,
|
||||
loff_t *ppos);
|
||||
extern int tcp_proc_delayed_ack_control(struct ctl_table *table, int write,
|
||||
void __user *buffer, size_t *length,
|
||||
void *buffer, size_t *length,
|
||||
loff_t *ppos);
|
||||
|
||||
void tcp_enter_quickack_mode(struct sock *sk, unsigned int max_quickacks);
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ static void set_tcp_default(void)
|
|||
|
||||
/*sysctl handler for tcp_ack realted master control */
|
||||
int tcp_proc_delayed_ack_control(struct ctl_table *table, int write,
|
||||
void __user *buffer, size_t *length,
|
||||
void *buffer, size_t *length,
|
||||
loff_t *ppos)
|
||||
{
|
||||
int ret = proc_dointvec_minmax(table, write, buffer, length, ppos);
|
||||
|
|
|
|||
Loading…
Reference in a new issue