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)
commit4bcd4ec1017205644a2697bccbc3b5143f522f5f
tree153bbab83efb5b5391c7ab68f14fa3bc1dee49d7
parentf7a937801b9f8788519a23b12cb4d6c2c84d84be
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: cc79dd1ba9c10 ("tipc: change socket buffer overflow control to respect sk_rcvbuf")
Fixes: a5325ae5b8bff ("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