]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
sctp: check the rto_min and rto_max in setsockopt
authorwangweidong <wangweidong1@huawei.com>
Wed, 11 Dec 2013 01:50:38 +0000 (09:50 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Dec 2013 03:54:34 +0000 (22:54 -0500)
commit85f935d41af097a87067367be66de52896b964e1
tree80f8717fe0c3df5009675763c566aba726e22f18
parentce7a3bdf18a8dbcba1409f5d335c56fde432ca89
sctp: check the rto_min and rto_max in setsockopt

When we set 0 to rto_min or rto_max, just not change the value. Also
we should check the rto_min > rto_max.

Suggested-by: Vlad Yasevich <vyasevich@gmail.com>
Signed-off-by: Wang Weidong <wangweidong1@huawei.com>
Acked-by: Vlad Yasevich <vyasevich@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/socket.c