mirror of
https://github.com/LineageOS/android_kernel_fxtec_sm6115.git
synced 2026-08-18 12:01:07 +00: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:
committed by
Michael Bestas
parent
7d6d982279
commit
7d57f84115
@ -363,7 +363,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);
|
||||
|
||||
static inline void tcp_dec_quickack_mode(struct sock *sk)
|
||||
|
||||
@ -46,7 +46,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);
|
||||
|
||||
Reference in New Issue
Block a user