]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: set sysctl_tipc_rmem and named_timeout right range
authorJie Liu <liujie165@huawei.com>
Tue, 16 Apr 2019 05:10:09 +0000 (13:10 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Apr 2019 04:32:02 +0000 (21:32 -0700)
commit4819a76e62adb579d3710a790a71803e9f8518fe
tree153bbab83efb5b5391c7ab68f14fa3bc1dee49d7
parent479eea040d9d0a8dfa74052bc3ac60ee914b719c
tipc: set sysctl_tipc_rmem and named_timeout right range

We find that sysctl_tipc_rmem and named_timeout do not have the right minimum
setting. sysctl_tipc_rmem should be larger than zero, like sysctl_tcp_rmem.
And named_timeout as a timeout setting should be not less than zero.

Fixes: 4f71b04283e1a ("tipc: change socket buffer overflow control to respect sk_rcvbuf")
Fixes: d607469a7f8bc ("tipc: add name distributor resiliency queue")
Signed-off-by: Jie Liu <liujie165@huawei.com>
Reported-by: Qiang Ning <ningqiang1@huawei.com>
Reviewed-by: Zhiqiang Liu <liuzhiqiang26@huawei.com>
Reviewed-by: Miaohe Lin <linmiaohe@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/sysctl.c